Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » CharField with primary_key=True: a possible bug? [RSS Feed]

#1 Oct. 31, 2005 22:48:55

E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

CharField with primary_key=True: a possible bug?


Hi,
as far as I read from django documentation "primary_key=True implies
blank=False, null=False and unique=True". But if I have a CharField
with primary_key=True it is still possible to enter an empty string (no
complaints in admin interface). The same happens if you explicitly say
"blank=False".

Is it a bug or am I missing something?

Cheers,

Emanuele

Offline

  • Root
  • » Django
  • » CharField with primary_key=True: a possible bug? [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support