Commits on Jan 17, 2017
Commits on Jan 16, 2017
  1. Fixed #25307 -- Fixed QuerySet.annotate() crash with conditional expr…

    Thanks Travis Newport for the tests and Josh Smeaton for contributing
    to the patch.
    jarshwah committed with timgraham Jan 16, 2017
  2. Refs #16614 -- Called _prepare_cursor() on every created cursor.

    François Freitag committed with timgraham Jan 14, 2017
Commits on Jan 15, 2017
  1. Fixed #25809 -- Added BrinIndex support in django.contrib.postgres.

    Thanks Tim Graham and Markus Holtermann for review.
    atombrella committed Oct 13, 2016
Commits on Jan 14, 2017
  1. Fixed #27149 -- Added Subquery and Exists database expressions.

    Thanks Josh Smeaton for Oracle fixes.
    schinckel committed with timgraham Apr 20, 2016
  2. Fixed #27718 -- Added QuerySet.union(), intersection(), difference().

    Thanks Mariusz Felisiak for review and Oracle assistance.
    Thanks Tim Graham for review and writing docs.
    apollo13 committed with timgraham Jan 14, 2017
  3. Refs #16614 -- Prevented database errors from being masked by cursor …

    When an error occurred during the cursor.execute statement, the cursor
    is closed. This operation did not fail with client-side cursors. Now,
    with server-side cursors, the close operation might fail (example
    below). The original error should be raised, not the one raised by
    cursor.close(), this is only clean-up code.
    For example, one can attempt to create a named cursor for an invalid
    query. psycopg will raise an error about the invalid query and the
    server-side cursor will not be created on PostgreSQL. When the code
    attempts to cursor.close(), it asks psycopg to close a cursor that was
    not created. pyscopg raises a new error: psycopg2.OperationalError:
    cursor "_django_curs_140365867840512_20" does not exist.
    François Freitag committed with timgraham Jan 13, 2017
  4. Refs #25226 -- Cloned ArrayField.base_field on deconstruction.

    This prevents the base_field from sharing attributes with the one used
    during migrations.
    charettes committed with timgraham Jan 14, 2017
  5. Changed a test to be consistent when run in parallel.

    This particular test was sometimes failing when running the test suite
    in parallel. The `id` was different depending on the order the tests
    were run. The test was incorrectly comparing model primary keys rather
    than ensuring they didn't change.
    jarshwah committed Jan 14, 2017
Commits on Jan 13, 2017
  1. Fixed #27709 -- Fixed get_for_models() for proxies with an empty cache.

    Thanks Peter Inglesby for the report and tests.
    charettes committed Jan 10, 2017
  2. Fixed #27518 -- Prevented possibie password reset token leak via HTTP…

    … Referer header.
    Thanks Florian Apolloner for contributing to this patch and
    Collin Anderson, Markus Holtermann, and Tim Graham for review.
    romgar committed with timgraham Jan 13, 2017
  3. Removed available_apps on TestCase subclasses.

    TestCase subclasses are wrapped in a transaction that prevents any data from
    being persisted between test runs andi thus don't require limiting the tables
    to be flushed to a subset of available apps like TransactionTestCase subclasses
    charettes committed Jan 12, 2017
  4. Refs #20483 -- Implemented cascaded flush on Oracle.

    The initial implementation added support for PostgreSQL but it is also required
    on Oracle (13b7f29).
    Thanks Mariusz Felisiak for the foreign key retreival queries.
    charettes committed May 20, 2016
Commits on Jan 12, 2017
Commits on Jan 11, 2017
  1. Refs #16614 -- Made QuerySet.iterator() use server-side cursors on Po…

    Thanks to Josh Smeaton for the idea of implementing server-side cursors
    in PostgreSQL from the iterator method, and Anssi Kääriäinen and Kevin
    Turner for their previous work. Also Simon Charette and Tim Graham for
    François Freitag committed with timgraham Jun 3, 2016
Commits on Jan 10, 2017
  1. Fixed #27712 -- Reallowed Input widget's attrs argument to set the in…

    …put type.
    Regression in b52c730.
    felixxm committed with timgraham Jan 10, 2017