Masklinn,

Yeah sorry mate, its a really old scirpting habit from previous codes.

Note taken,

All lower case :D

On 5 Aug, 09:39, Masklinn <[email protected]> wrote:
> On 5 Aug 2009, at 10:14 , StevenC wrote:> I know the error is because the 
> page is not submitting the POST
> > variable for Lived_Out_Uk and my IF statment is checking if it is set.
> > So how can i check to see if metho.POST['Lived_Out_Uk'] is set?
>
> I'm not sure I understand your code samples: are you using a  
> TypedChoiceField without a form around it (or is that a separate chunk  
> of code in your forms.py)? And then manually checking for the value?  
> And if it's a boolean field, why aren't you just using a  
> forms.BooleanField in a Django form?
>
> Also, look up the `in` operator for future references. But not for  
> this case, because I think you're doing it wrong.
>
> Finally, please do read PEP8. Python is not (as far as I know) Ada.  
> The variable names Lived_Out_Uk, Country_Residence and Date_Reentry  
> don't conform to most Python style guides, they should be all-
> lowercase and underscore-separated words, not titlecased.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to