Would like to ask how to achieve dynamic filtering in Admin. I know how to use django-smart-selects in admin but it works I guess only for FK not for many-to-many models. I would like to achieve when I create an ART in the admin and select category it would filter only those artists which belong to that category & additionally when I select artist while creating Art it would filter those collections that belong to that Artist. I can make Artists & Collections to work with django-smart-selects but artists & categories not because they are many-to-many. Please help. Thanks models.py
asked 10 Apr '13, 15:16 rentgeeen |
The admin uses the ModelAdmin class to extend it. You will have to write your custom view code within it or read the section on Overriding Admin Templates and write custom views and admin code. answered 10 Apr '13, 17:31 johns I would like to use dropdown filtering (live filtering) while in admin just like django smart selects: https://github.com/digi604/django-smart-selects but I am using many to many field that plugin doesnt support that. So I am looking for that kind of solution, I know I have to edit admin templates but my question if there is solution already or something, because for that that kind of purpose I need to use ajax jquery etc...
(10 Apr '13, 17:40)
rentgeeen
|