django/tests/modeltests
Malcolm Tredinnick 686c5a2f88 Fixed the empty model saving case so that it retrieves the primary key id. Also
updated the tests to test this case.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3118 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-12 12:49:14 +00:00
..
basic Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
choices Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
custom_columns Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
custom_managers Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
custom_methods Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
custom_pk Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
empty Fixed the empty model saving case so that it retrieves the primary key id. Also 2006-06-12 12:49:14 +00:00
field_defaults Cleaned up numbering with model unit tests 2006-05-31 19:23:07 +00:00
get_latest Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
get_or_create Added Manager.get_or_create() 2006-06-07 00:09:29 +00:00
invalid_models Fix test output as a result of the change in r3094. 2006-06-07 09:19:43 +00:00
lookup Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
m2m_and_m2o Fixed unit-test output error in m2m_and_m2o unit tests, due to a change in the model's __repr__ earlier today 2006-06-01 04:30:39 +00:00
m2m_intermediary Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
m2m_multiple Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
m2m_recursive Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
m2o_recursive Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
m2o_recursive2 Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
manipulators Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
many_to_many Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
many_to_one Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
many_to_one_null Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
model_inheritance Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
mutually_referential 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
one_to_one Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
or_lookups Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
ordering Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
pagination Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
properties Added blurbs to the model unit tests that didn't have them 2006-05-31 18:45:17 +00:00
reserved_names Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
reverse_lookup Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
save_delete_hooks Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
str Fixed #2077 -- Renamed 'repr' model tests to 'str' 2006-06-03 22:14:04 +00:00
transactions Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00:00
validation Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str 2006-06-04 00:23:51 +00: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