Hi list,
why can I add a record in the admin where the name field is empty,
when the docs say:
"primary_key=True implies blank=False, null=False and unique=True.
Only one primary key is allowed on an object."

My code:
name = models.CharField(maxlength=255, primary_key=True, db_index=True)

There is no other primary_key defined.

What's wrong here?
Thanks, Kai

--~--~---------~--~----~------------~-------~--~----~
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