madhav
unread,Feb 19, 2009, 7:45:35 AM2/19/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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?