I have a model something like this: class CandidateEmailMessage(models.Model): from_email = models.EmailField(max_length=100) to_email = models.EmailField(max_length=100) body = models.TextField() objects = CandidateEmailMessageManager()
As the django documentation says blank=False,null=False are there by default. So if I do candidate_email_object = CandidateEmailMessage (from_email='',to_email='',body=''); candidate_email_object.save() it should not be saved. But its actually saving, an empty object. I am running the above script in my test case. How is it actually allowing that? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---