django1/django/db/models
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
..
fields Fixed #4412 -- Added support for optgroups, both in the model when defining choices, and in the form field and widgets when the optgroups are displayed. Thanks to Matt McClanahan <cardinal@dodds.net>, Tai Lee <real.human@mrmachine.net> and SmileyChris for their contributions at various stages in the life of this ticket. 2008-07-19 07:53:02 +00:00
sql Fixed #7411 -- worked around some possible transaction conflicts in SQLite. 2008-07-15 18:47:32 +00:00
__init__.py Merged the newforms-admin branch into trunk. 2008-07-18 23:54:34 +00:00
base.py Reverted [7986]. 2008-07-19 22:26:32 +00:00
loading.py Added tests for corner case with deleting where objects are deleted in the wrong order. 2008-06-21 20:55:17 +00:00
manager.py Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
manipulators.py Merged the newforms-admin branch into trunk. 2008-07-18 23:54:34 +00:00
options.py Merged the newforms-admin branch into trunk. 2008-07-18 23:54:34 +00:00
query.py Fixed #7759 -- Fixed QuerySet.count() when the results cache was only partially 2008-07-16 23:17:29 +00:00
query_utils.py Factored out a semi-complex if-test that was used in two places. 2008-06-29 09:40:17 +00:00
related.py An improved version of the change attempted in [4693]: retain backwards 2007-03-10 07:37:08 +00:00
signals.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