Django-Admin: list_filter attribute from UserProfile

后端 未结 2 1022
别那么骄傲
别那么骄傲 2020-12-28 23:46

I want to allow the admins of my site to filter users from a specific country on the Admin Site. So the natural thing to do would be something like this:

#ad         


        
2条回答
  •  旧巷少年郎
    2020-12-28 23:49

    Django 1.3 fixed it. You're now allowed to span relations in list_filter

    https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter

提交回复
热议问题