Change History (4)

Thanks for kicking off the discussion on this. It definitely sounds interesting, but it's probably too early for this to be in Trac. There are other people who are driving the admin work forward, namely Idan and Julien. Your best bet is to try to grab them on IRC or email the django-developers and describe what it is you've got planned and how you'd like to tackle it. You can also take a stab at this and offer patches -- it's definitely easier to grok what you're suggesting when we can look at code.

I took a stab at implementing this. I ended up creating a new filter class ComparisonFieldListFilter. When using it we'll need to pass in the value to compare the field to. The easiest way (that I saw) to support this was to use a nested tuple.

list_filter = [(('rank', 50), admin.ComparisonFieldListFilter), ]

I'm assume that my code will need some modifications, so let me know what I need to change or clean up. This is just a starting point.