summaryrefslogtreecommitdiff
path: root/tests/basic
diff options
context:
space:
mode:
authorTai Lee <tai.lee@3030.com.au>2013-05-04 00:02:10 +1000
committerAnssi Kääriäinen <akaariai@gmail.com>2013-07-31 15:54:17 +0300
commit31e6d58d46894ca35080b4eab7967e4c6aae82d4 (patch)
tree4d77e97f90902bdd0ad77cdeb0735ab893929c58 /tests/basic
parent8f5533ab250df07ea84f98d39808806e282468a5 (diff)
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.
Diffstat (limited to 'tests/basic')
0 files changed, 0 insertions, 0 deletions