I have this in my views, if there lor1 and lor2 are both there it works fine, but if one or two of them are missing then it gives me this error.
views.py - http://dpaste.com/161124/ error - http://dpaste.com/161128/ Some applicants have two LORs, some have one LOR, and obviously some don't have any. If it only has one, then cog.letter_rec_1 should have a value while cog.letter_rec_2 should be NULL. If they have no LORs then both cog.letter_rec_1 and cog.letter_rec_2 should be NULL. What have I done wrong in my views? -- 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.

