django1/django/contrib
Ramiro Morales 04d9730b12 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.
2013-02-07 16:05:54 -03:00
..
admin Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 2013-02-05 04:16:07 -05:00
admindocs Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 2013-02-05 04:16:07 -05:00
auth Updated createsuperuser to use unicode_literals. Refs #19757. 2013-02-07 14:33:36 +01:00
comments Fixed #19704 -- Make use of new ungettext_lazy function at appropriate places 2013-02-06 22:01:55 +01:00
contenttypes Fixed #13085 -- Don't fail on creation of model with GFK to a model with __len__() returning zero. 2013-02-07 16:05:54 -03:00
flatpages Update django/contrib/flatpages/forms.py 2012-11-15 22:53:08 +01:00
formtools Fixed #17061 -- Factored out importing object from a dotted path 2013-02-04 16:38:25 +01:00
gis Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 2013-02-05 04:16:07 -05:00
humanize Fixed a typo in aff9b2f. 2012-10-28 22:35:25 +01:00
messages Fixed #17061 -- Factored out importing object from a dotted path 2013-02-04 16:38:25 +01:00
redirects Fixed #16678 -- Wrote tests for contrib.redirects app 2012-11-01 19:47:41 +01:00
sessions Fixed #19356 -- Increased session key entropy. 2012-11-29 16:36:43 +01:00
sitemaps Fixed #19692 -- Completed deprecation of mimetype in favor of content_type. 2013-01-31 13:54:40 +01:00
sites Updated base translation files 2012-10-15 11:17:06 +02:00
staticfiles Fixed #17061 -- Factored out importing object from a dotted path 2013-02-04 16:38:25 +01:00
syndication Fixed #9800 -- Allow "isPermaLink" attribute in <guid> element of an RSS item. 2013-02-06 05:28:05 -05:00
webdesign Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
__init__.py Created django.contrib and moved comments into it 2005-07-14 18:20:03 +00:00