This website requires JavaScript.
Explore
Help
Sign In
innov
/
django1
Watch
1
Star
0
Fork
You've already forked django1
0
Code
Issues
Pull Requests
1
Projects
Releases
Wiki
Activity
04415bf81b
django1
/
tests
/
distinct_on_fields
/
__init__.py
2 lines
2 B
Python
Raw
Normal View
History
Unescape
Escape
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-23 04:42:40 +08:00
#