Opened 9 years ago

Closed 9 years ago

#12182 closed (invalid)

1.0.3 fails to validate models on MySQL 5.1.34 on Windows XP

Reported by: Jacob Fenwick Owned by: nobody
Component: Testing framework Version: 1.0
Severity: Keywords: mysql
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


When running django-1.0.3\tests\ I get this error:

Creating test database...
Error: One or more models did not validate:
serializers_regress.booleandata: "data": BooleanFields do not accept null values. Use a NullBooleanField instead.

May be related to:

Change History (2)

comment:1 Changed 9 years ago by Jacob Fenwick

I just tried in django 1.0.3 with DATABASE_ENGINE = 'postgresql_psycopg2' and that also gave the same error.

comment:2 Changed 9 years ago by Karen Tracey

Resolution: invalid
Status: newclosed

The behavior you are describing indicates you are running the 1.0.3 tests using some higher level of Django code. r10456 introduced the warning, and simultaneously fixed the test noted here to not pass null as a parameter to that field. This changeset was not backported to the 1.0.X branch, so the test (and code) in all 1.0.X releases do not have the change. If you are getting the message, then somehow when you are running the 1.0.3 tests you are picking up a higher level of Django code, either because it is installed in site-packages or because your PYTHONPATH points to it.

Note: See TracTickets for help on using tickets.
Back to Top