0
0
mirror of https://github.com/django/django.git synced 2024-11-29 14:46:18 +01:00
django/tests/model_fields
Tai Lee 31e6d58d46 Fixed #20348 -- Consistently handle Promise objects in model fields.
All Promise objects were passed to force_text() deep in ORM query code.
Not only does this make it difficult or impossible for developers to
prevent or alter this behaviour, but it is also wrong for non-text
fields.

This commit changes `Field.get_prep_value()` from a no-op to one that
resolved Promise objects. All subclasses now call super() method first
to ensure that they have a real value to work with.
2013-07-31 15:54:17 +03:00
..
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
4x8.png Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
8x4.png Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Fixed #19934 - Use of Pillow is now preferred over PIL. 2013-05-14 19:32:04 -07:00
test_imagefield.py Removed most of absolute_import imports 2013-07-29 20:28:13 +02:00
tests.py Fixed #20348 -- Consistently handle Promise objects in model fields. 2013-07-31 15:54:17 +03:00