Branch: refs/heads/master
Home: https://github.com/django/django
Commit: 04d9730b127c689b8eda01cbc913efa6e2eb230b
https://github.com/django/django/commit/04d9730b127c689b8eda01cbc913efa6e2eb230b
Author: Ramiro Morales <[email protected]>
Date: 2013-02-07 (Thu, 07 Feb 2013)
Changed paths:
M django/contrib/contenttypes/generic.py
M tests/regressiontests/generic_relations_regress/models.py
M tests/regressiontests/generic_relations_regress/tests.py
Log Message:
-----------
Fixed #13085 -- Don't fail on creation of model with GFK to a model with
__len__() returning zero.
Also, according to the comments on the ticket and its duplicates, added
tests execising saving an instance of a model with a GFK to:
* An unsaved object -- This actually doesn't generate the same failure
but another ORM-level exception. The test verifies it's the case.
* An instance of a model with a __nonzero__() method thant returns False
for it. This doesn't fail because that code path isn't executed.
* An instance of a model with a CharField PK and an empty value for it.
This doesn't fail.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.