Re: django admin : "unique" field option error with models.BooleanField

2006-11-13 Thread david83
code = models.PositiveIntegerField("Code", unique=True) For example : with a PositiveIntegerField, I can't insert 2 entries with code = 100. Django display error message. With a BooleanField, I can insert 2 or many entries with boolean = 1 without error message. The unique option doesn't apply h

Re: django admin : "unique" field option error with models.BooleanField

2006-11-12 Thread Nathan R. Yergler
By definition there are only two possible values for a BooleanField: True and False. And if you add the unique=True constraint (which says each row must be unique), well, two is all you get. Maybe unique=True isn't exactly what you want? Nathan On Sun, 2006-11-12 at 02:41 -0800, david83 wrote: