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
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:
2 matches
Mail list logo