1
0
mirror of https://github.com/django/django.git synced 2025-02-01 21:29:24 +00:00
Anssi Kääriäinen 0c7633178f Fixed #24020 -- Refactored SQL compiler to use expressions
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.
2015-01-08 14:07:54 -05:00
..
2014-10-22 21:21:02 -04:00
2013-12-24 12:25:17 +01:00
2014-08-18 13:44:10 -04:00
2013-11-02 23:50:49 -05:00
2014-12-06 12:06:06 -05:00
2013-12-24 12:25:17 +01:00
2014-12-28 17:02:30 +01:00

To run the test suite::

    $ cd tests
    $ pip install -r requirements/py3.txt  # or py2.txt
    $ PYTHONPATH=..:$PYTHONPATH ./runtests.py

For more information about the test suite, see
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/.