Create a get_list_filter hook in ModelAdmin
This would be useful when for example the queryset is filtered based on a user type and the superuser can see all types. For a superuser one could add a the type field to list_display and list_filter.
Attachments
(1)
- ticket17646.diff
(6.1 KB
) - added by mateusgondim 12 years ago.
- I created the hook there in options.py and replaced it in another method that was using the property directly.i also added a doc about the new method in the index.txt of admin, and in the section of minor features in release notes.Finally, i added a test in regression tests about that.
Download all attachments as:
.zip
Change History
(11)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to mateusgondim
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Maybe also creating hooks for all the remaining ModelAdmin properties.