django1/django/db/backends/postgresql_psycopg2
Ramiro Morales 287565779d Added support for modifying the effect of ``DISTINCT`` clauses so they
only consider some fields (PostgreSQL only).

For this, the ``distinct()`` QuerySet method now accepts an optional
list of model fields names and generates ``DISTINCT ON`` clauses on
these cases. Thanks Jeffrey Gelens and Anssi Kääriäinen for their work.

Fixes #6422.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-22 20:42:40 +00:00
..
__init__.py Added postgresql_psycopg2 backend, which is untested, just for a starting point 2006-05-16 23:27:07 +00:00
base.py Added support for modifying the effect of ``DISTINCT`` clauses so they 2011-12-22 20:42:40 +00:00
client.py Deprecated the psycopg-based postgresql database backend. 2011-04-02 08:39:08 +00:00
creation.py Used symbolic constants for psycopg2 isolation levels. 2011-11-19 14:18:44 +00:00
introspection.py Removed duplicate entry in introspection PostgreSQL db backend. 2011-06-13 20:15:04 +00:00
operations.py Added support for modifying the effect of ``DISTINCT`` clauses so they 2011-12-22 20:42:40 +00:00
version.py Fixed #11065, #11285 -- Streamlined PostgreSQL version detection, fixing incompatibility with multi-db. Thanks findepi for the report. 2011-06-19 18:00:09 +00:00