My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 62: BooleanFields do not accept null values
1 person starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Owner:  ----
Closed:  May 2009


 
Reported by ask...@gmail.com, Apr 21, 2009
What steps will reproduce the problem?
1. manage.py validate


What is the expected output? What do you see instead?
got validate error
Error: One or more models did not validate:
forum.thread: "sticky": BooleanFields do not accept null values. Use a 
NullBooleanField instead.
forum.thread: "closed": BooleanFields do not accept null values. Use a 
NullBooleanField instead.

What version of the product are you using? On what operating system?
latest svn checkout

Please provide any additional information below.
the latest django\core\management\validation.py add this validation.
if isinstance(f, models.BooleanField) and getattr(f, 'null', False):
                e.add(opts, '"%s": BooleanFields do not accept null values. 
Use a NullBooleanField instead.' % f.name)
            

May 2, 2009
Project Member #1 rwpoul...@gmail.com
Duplicate of  issue #59 . Fixed from r42.
Status: Duplicate
Mergedinto: 59

Powered by Google Project Hosting