diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-07-22 07:37:09 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-07-22 07:37:09 +0000 |
| commit | 83e97ecf885676f29170ee036ca210d28dfe19fb (patch) | |
| tree | bb92dd001c9cf0834cb418697fb48d6dd2d489f7 /tests | |
| parent | 0e9587fd6b180d0a752ae77d3adb5e7966cb65b4 (diff) | |
Fixed #7791 -- Fixed a really silly error I introduced in [7926]. :-(
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/queries/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py index 847d515422..51cae7cde8 100644 --- a/tests/regressiontests/queries/models.py +++ b/tests/regressiontests/queries/models.py @@ -822,6 +822,11 @@ Bug #7759 -- count should work with a partially read result set. ... break True +Bug #7791 -- there were "issues" when ordering and distinct-ing on fields +related via ForeignKeys. +>>> Note.objects.order_by('extrainfo__info').distinct() +[<Note: n3>, <Note: n1>, <Note: n2>] + """} # In Python 2.3, exceptions raised in __len__ are swallowed (Python issue |
