On Sat, Jul 4, 2009 at 1:33 PM, Ryan K <ryankas...@gmail.com> wrote: > > Lets say I retrieve from my database an object foo and foo's model has > a ForeignKey field, baz, with null and blank set to True. Will a > simple test like if foo.baz ... test whether the field is set to NULL > or not? > > Cheers, > Ryan > > > Yes, foo.baz will be None if there is no related object.
Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---