1
0
mirror of https://github.com/django/django.git synced 2025-01-12 03:15:47 +00:00
django/tests/modeltests
Malcolm Tredinnick 5141b67a19 Reverted [7986].
It turns out that we need to treat filename creation/display (in
particular, the upload_to path) differently depending upon whether the value is
out of the database or provided by other code and there's no reliable way to
determine that at the moment (although some later proposed changes might alter
that). So calling get_FIELD_filename on an unsaved model with a changed file
attribute will not necessarily return the same result as after the save().

Refs #5619. Fixed #7843.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7998 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-19 22:26:32 +00:00
..
basic Fixed #7718 -- Added a naive implementation of sorted() for Python 2.3 compatibility, and modified test cases to import the function when required. 2008-07-13 08:48:18 +00:00
choices
custom_columns Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
custom_managers
custom_methods
custom_pk Replaced dict reprs in tests with explicit looks at each key. This should fix many spurious test failures on other VMs (first noticed on Jython). 2008-03-19 19:11:51 +00:00
delete Fixed bug with Model.delete() which did not always delete objects in the right order. 2008-06-21 20:57:05 +00:00
empty
field_defaults
field_subclassing Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
fixtures Removed the mysql_old backend. It smells bad and has no friends. 2008-07-18 17:38:53 +00:00
generic_relations
get_latest
get_object_or_404
get_or_create
invalid_models Merged the newforms-admin branch into trunk. 2008-07-18 23:54:34 +00:00
lookup Removed the mysql_old backend. It smells bad and has no friends. 2008-07-18 17:38:53 +00:00
m2m_and_m2o
m2m_intermediary
m2m_multiple
m2m_recursive
m2o_recursive
m2o_recursive2
manipulators Replaced dict reprs in tests with explicit looks at each key. This should fix many spurious test failures on other VMs (first noticed on Jython). 2008-03-19 19:11:51 +00:00
many_to_many Fixed #7026 -- Fixed misleading/incorrect exception text when adding to a many-to-many set on an object that doesn't yet have a primary-key value. Thanks for the report, ryan@peaceworks.ca 2008-06-12 04:13:16 +00:00
many_to_one Fixed #7741: django.newforms is now django.forms. This is obviously a backwards-incompatible change. There's a warning upon import of django.newforms itself, but deeper imports will raise errors. 2008-07-19 01:22:26 +00:00
many_to_one_null Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
model_forms Reverted [7986]. 2008-07-19 22:26:32 +00:00
model_formsets Fixed #7741: django.newforms is now django.forms. This is obviously a backwards-incompatible change. There's a warning upon import of django.newforms itself, but deeper imports will raise errors. 2008-07-19 01:22:26 +00:00
model_inheritance Fixed #7215 -- Create correct reverse-relation accessors when using abstract base classes. Patch from Joel Watts. 2008-06-26 07:04:18 +00:00
mutually_referential
one_to_one Fixed #6886: Tightened up ForeignKey and OneToOne field assignment. Specifically: 2008-06-05 00:39:32 +00:00
or_lookups Fixed #7718 -- Added a naive implementation of sorted() for Python 2.3 compatibility, and modified test cases to import the function when required. 2008-07-13 08:48:18 +00:00
order_with_respect_to Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
ordering Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
pagination Fixed test suite after [7687]. 2008-07-08 05:28:37 +00:00
properties
reserved_names Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
reverse_lookup Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
save_delete_hooks
select_related Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
serializers Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
signals Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
str
test_client Fixed #7741: django.newforms is now django.forms. This is obviously a backwards-incompatible change. There's a warning upon import of django.newforms itself, but deeper imports will raise errors. 2008-07-19 01:22:26 +00:00
transactions Removed the mysql_old backend. It smells bad and has no friends. 2008-07-18 17:38:53 +00:00
update Fixed #7298: prevent update() on sliced QuerySet since UPDATE doesn't reliably support LIMIT/OFFSET. Thanks, George Vilches. 2008-06-09 16:17:54 +00:00
user_commands
validation Replaced dict reprs in tests with explicit looks at each key. This should fix many spurious test failures on other VMs (first noticed on Jython). 2008-03-19 19:11:51 +00:00
__init__.py