vasuporov / snapboard

Automatically exported from code.google.com/p/snapboard
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Invitation model does not pass validation in Django 1.1 #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Validate snapboard models under django 1.1
2. Error returns

What is the expected output? What do you see instead?
"accepted" field under Invitation model should be a NullBooleanField. Under
Django 1.1 a simple BooleanField cannot be nullable

Original issue reported on code.google.com by uvd...@gmail.com on 27 Jun 2009 at 1:54

GoogleCodeExporter commented 8 years ago
snapboard/models.py

class Invatation...
+++accepted = models.BooleanField(_('accepted'), blank=True, null=False)
---accepted = models.BooleanField(_('accepted'), blank=True, null=True)

Original comment by indexof...@gmail.com on 27 Oct 2009 at 2:12

GoogleCodeExporter commented 8 years ago
For the field to be tri-state is must be a NullBooleanField:

snapboard/models.py

class Invatation...
+++accepted = models.NullBooleanField(_('accepted'), blank=True)
---accepted = models.BooleanField(_('accepted'), blank=True, null=True)

Original comment by djbe...@gmail.com on 2 Nov 2010 at 10:58