Hi,

I think I just stumbled across a something others must have
encountered too. But I can'T find any documentation that enlightens
me.

I have a CharField in my model that looks like that.

name = models.CharField(_('Projektname'), max_length = 255)

The result is, that I can't create an instance of the model containing
this CharField in the admin interface if the CharField is empty. So
far so good. But...

>>> Project().save()

works without any problems. Why? I mean, I told my model to include a
CharField called "name", which has to be filled. I expected save() to
raiuse an Exception, but instead it just saves the model which
violates the constraints.

Why is this the case? I like to understand that. Any pointers would be
nice and highly appreciated.

Best regards,
Oliver


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to