• Tai Lee's avatar
    Fixed #20348 -- Consistently handle Promise objects in model fields. · 31e6d58d
    Tai Lee yazdı
    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.
    31e6d58d
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...