#3400: [patch] Support for lookup separator with list_filter admin option
-----------------------------+----------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Admin interface
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 1
-----------------------------+----------------------------------------------
This patch adds support for using the lookup separator in the list_filter
option, for example:
{{{
class Town(models.Model):
name = models.CharField()
class House(models.Model):
town = models.ForeignKey(Town)
class Room(models.Model):
house = models.ForeignKey(House)
class Booking(models.Model):
room = models.ForeignKey(Room, raw_id_admin=True)
class Admin:
list_filter = ('room__house__town',)
}}}
Will add a filter "For town:" that spans multiple foreign keys.
--
Ticket URL: <http://code.djangoproject.com/ticket/3400>
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
-~----------~----~----~----~------~----~------~--~---