#7582: Sorting by nullable ForeignKey
-----------------------------------------+----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Milestone: 1.0 alpha
Component: Admin interface | Version: newforms-admin
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-----------------------------------------+----------------------------------
Changes (by jpwatts):
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
Comment:
If I understand correctly, the issue here is that
{{{django.contrib.admin}}} isn't making the column '''re-sortable''' when
a nullable {{{ForeignKey}}} appears in the {{{list_display}}} of a
{{{ModelAdmin}}} class.
I've tested the patch and it fixes the above issue by removing the code
that explicitly prevents the behavior. It looks to me like that code
shouldn't have survived queryset-refactor anyway.
I did notice that the patch as it stands doesn't apply to the top-level
directory, so I'll be attaching a version that does, but is otherwise
unmodified.
--
Ticket URL: <http://code.djangoproject.com/ticket/7582#comment:1>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---