django1/django/db/models/fields
Jacob Kaplan-Moss 2b0903b2c4 Fixed #10404: ImageField height_field and width_field options no longer depend on putting the image field after the height/width fields as they did after r9766.
This bug actually exposed a related handful of inconsistancies in the underlying file handling and wraping, so a few related changes are in here as well:

    * Dimensions are also now calculated the moment the image is assigned to the field instead of upon save.
    * The base `File` object now when possible delegates its closed attribute down to the os-level file it wrapps.
    * In-memory files' `close()` now is a no-op. Without this certain APIs that should be able to handle in-memory files were failing.
    * Accessing `FieldFile.closed` used to open the file. That's silly, and it doesn't any more.
    * Some over-eager error handling was squishing some errors that would normally be raised. One unit test was incorrectly depending on this behavior, so the test was removed.

Thanks to Armin Ronacher for much of this work.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-11 09:57:19 +00:00
..
__init__.py Fixed #10692 -- Fixed DecimalField lookups for extreme values. 2009-04-12 05:32:23 +00:00
files.py Fixed #10404: ImageField height_field and width_field options no longer depend on putting the image field after the height/width fields as they did after r9766. 2009-05-11 09:57:19 +00:00
proxy.py Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
related.py Fixed #10153: foreign key `gte` and `lte` lookups now work. Thanks, joelhooks and adurdin. 2009-05-07 16:12:08 +00:00
subclassing.py Removed several deprecated features for 1.0 (refs #7830): 2008-08-02 04:56:11 +00:00