summaryrefslogtreecommitdiff
path: root/tests/from_db_value
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-072-9/+9
|
* Removed unused __str__() methods in tests models.Author: Mads Jensen2020-04-151-7/+0
| | | | | Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
* Refs #28370 -- Removed support for the context arg of Field.from_db_value() ↵Tim Graham2019-01-172-26/+0
| | | | | | and Expression.convert_value(). Per deprecation timeline.
* Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette2018-11-271-1/+2
|
* Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert2018-05-091-11/+6
|
* Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵Tim Graham2017-07-202-1/+32
| | | | | | Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-2/+2
|
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-2/+0
|
* Refs #9619 -- Fixed failing test caseMarkus Holtermann2015-06-171-1/+1
| | | | Regression introduced in 9aac99e96d100b34b6daa3a137531eff4f17076e
* Refs #9619 -- Added a test that Field.from_db_value() is called on ↵JensDiemer2015-06-171-1/+5
| | | | QuerySet.values()
* Update converters to take a consistent set of parameters.Marc Tamlyn2015-02-201-1/+1
| | | | | | As suggested by Anssi. This has the slightly strange side effect of passing the expression to Expression.convert_value has the expression passed back to it, but it allows more complex patterns of expressions.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+1
|
* Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen2015-01-081-1/+1
| | | | | | | | | | | | | | | Refactored compiler SELECT, GROUP BY and ORDER BY generation. While there, also refactored select_related() implementation (get_cached_row() and get_klass_info() are now gone!). Made get_db_converters() method work on expressions instead of internal_type. This allows the backend converters to target specific expressions if need be. Added query.context, this can be used to set per-query state. Also changed the signature of database converters. They now accept context as an argument.
* Fixed #18757, #14462, #21565 -- Reworked database-python type conversionsMarc Tamlyn2014-09-033-0/+62
Complete rework of translating data values from database Deprecation of SubfieldBase, removal of resolve_columns and convert_values in favour of a more general converter based approach and public API Field.from_db_value(). Now works seamlessly with aggregation, .values() and raw queries. Thanks to akaariai in particular for extensive advice and inspiration, also to shaib, manfre and timograham for their reviews.