django1/django/db/models
Malcolm Tredinnick 587fbff3dd Make ManyToManyField model references more robust.
In r16679 a test was added to verify something had been fixed when a
unicode string type was passed in as a model name. The name has to be
ASCII convertible, but in Python 2.6 and earlier, it must also have str
type.

This commit fixes the problem for earlier Python versions and is almost
identical to a patch from b.leskes in #6045.

Fixes #16689. Refs #6045.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-25 06:07:28 +00:00
..
fields Make ManyToManyField model references more robust. 2011-08-25 06:07:28 +00:00
sql Allow "pk" as a field alias in QuerySet.only() calls. 2011-08-23 06:29:01 +00:00
__init__.py Fixed #15604 -- Changed django.db.models.permalink to use wraps() so that it doesn't eat the docstring. Thanks for the report, sfllaw. Also added tests. 2011-03-14 05:22:39 +00:00
aggregates.py Fixed #1142 -- Added multiple database support. 2009-12-22 15:18:51 +00:00
base.py Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
deletion.py Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl. 2011-08-12 14:14:15 +00:00
expressions.py Removed a bunch more Python 2.4 workarounds now that we don't support that version. Refs #15702 -- thanks to jonash for the patch. 2011-03-28 02:11:19 +00:00
loading.py Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
manager.py Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
options.py Fixed #16299 -- Ensure that unicode strings can be used to identify classes in ForeignKey and ManyToManyFields. Unicode strings aren't actually legal as class names, but this is an issue if you use from __future__ import unicode_literals in your models.py file. Thanks to Martijn Bastiaan for the report, and Anthony Briggs for the final patch. 2011-08-23 05:12:31 +00:00
query.py Fixed #16472 -- Removed stale code in the query code. Thanks, fva@chtd.org. 2011-07-29 09:40:09 +00:00
query_utils.py Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
related.py Fixed #5833 -- Modified the admin list filters to be easier to customize. Many thanks to Honza Král, Tom X. Tobin, gerdemb, eandre, sciyoshi, bendavis78 and Julien Phalip for working on this. 2011-05-03 10:44:23 +00:00
signals.py Fixed #13552 -- Added a 'using' parameter to database signals. Thanks to gmandx for the suggestion, and Andrew Godwin for the patch. 2010-08-07 06:27:52 +00:00