django/tests/modeltests
Anssi Kääriäinen f4132140f5 [1.5.x] Fixed #19652 -- Fixed .none() regression in related fields
The regression was caused by using .none() when querying for related
models, and the origin field's value was None. This resulted in missing
custom related manager subclass as .none() returns plain QuerySet.

This isn't backport from master, in master .none() correctly preserves
the queryset's class.

Patch provided by Simon Charette, with some minor polish by committer.
2013-01-23 08:26:34 +02:00
..
aggregation [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
basic [1.5.x] Updated deprecated test assertions 2013-01-08 19:11:40 +01:00
choices [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_columns [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_managers [1.5.x] Fixed #19652 -- Fixed .none() regression in related fields 2013-01-23 08:26:34 +02:00
custom_methods [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_pk Use a name that exists in both python2 and 3, 2012-08-15 01:13:09 -07:00
defer [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
delete Fixed a DeprecationWarning under Python 3. 2012-10-24 16:52:21 +02:00
distinct_on_fields [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
empty [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
expressions [1.5.x] Fixed #18375 -- Removed dict-ordering dependency for F-expressions 2012-11-23 20:07:50 +02:00
field_defaults [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
field_subclassing [1.5.x] Use new TestCase methods for equality comparisons 2012-12-24 02:19:16 +00:00
files [1.5.x] Fixed #19525 -- Reverted dcd4383107 and 05d333ba3b. 2012-12-27 09:43:41 +01:00
fixtures [1.5.x] Use new TestCase methods for equality comparisons 2012-12-24 02:19:16 +00:00
fixtures_model_package [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
force_insert_update Fixed various dodgy behaviours 2011-12-17 17:37:24 +00:00
generic_relations [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
get_latest [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
get_object_or_404 [1.5.x] Fixed #19432 -- Provided better error message for get_object_or_404 2012-12-12 22:05:49 +01:00
get_or_create Revert "Fixed #16865 -- Made get_or_create use read database for initial get query." 2012-09-19 11:15:12 -06:00
invalid_models [1.5.x] Fixed #5805 -- it is now possible to specify multi-column indexes. Thanks to jgelens for the original patch. Backport of 4285571c5a. 2012-11-04 10:26:59 -08:00
known_related_objects [1.5.x] Minor fixes in the known_related_objects tests. 2013-01-02 22:22:51 +01:00
lookup [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_and_m2o [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_intermediary [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_multiple [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_recursive [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_signals [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_through [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2o_recursive [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
many_to_many [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
many_to_one [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
many_to_one_null [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_forms [1.5.x] Fixed autopk issue in tests 2012-12-29 16:37:57 +02:00
model_formsets [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance_same_model_name [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_package Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
mutually_referential Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
one_to_one [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
or_lookups [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
order_with_respect_to [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
ordering [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
prefetch_related [1.5.x] Fixed #17991 - prefetch_related fails with GenericRelation and varchar ID field 2012-10-29 14:41:05 +00:00
properties Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
proxy_model_inheritance [1.5.x] Fixed #19357 -- Allow non-ASCII chars in filesystem paths 2012-12-08 11:16:03 +01:00
proxy_models Fixed #3011 -- Added swappable auth.User models. 2012-09-26 18:48:09 +08:00
raw_query [1.5.x] Fixed two typos. 2012-11-25 19:32:25 +01:00
reserved_names [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
reverse_lookup [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
save_delete_hooks [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
select_for_update [py3] Fixed remaining Python 3 syntax errors. 2012-07-22 09:29:53 +02:00
select_related [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
serializers [py3] Fixed uses of __metaclass__ in tests. 2012-08-15 00:31:29 +02:00
signals [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
str [1.5.x] Updated deprecated test assertions 2013-01-08 19:11:40 +01:00
tablespaces Added missing relative imports in test files. 2012-05-12 19:58:32 +02:00
test_client Fixed #17899 -- Rewrote [Ee]-mail to [Ee]mail 2012-09-26 14:14:51 +02:00
timezones [1.5.x] Fixed timezone tests when dict randomization is on 2012-10-25 23:15:52 +02:00
transactions [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
unmanaged_models [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
update [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
update_only_fields [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
user_commands [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
validation [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
validators Fixed #17867 -- Made email validation pass with IDN domains 2012-10-09 15:08:32 +02:00
__init__.py MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. 2006-05-02 01:31:56 +00:00