mirror of
https://github.com/Hopiu/django.git
synced 2026-03-25 18:30:31 +00:00
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. |
||
|---|---|---|
| .. | ||
| 4x8.png | ||
| 8x4.png | ||
| __init__.py | ||
| models.py | ||
| test_imagefield.py | ||
| tests.py | ||