Multiple ModelAdmins/views for same model in Django admin
I’ve found one way to achieve what I want, by using proxy models to get around the fact that each model may be registered only once. class PostAdmin(admin.ModelAdmin): list_display = (‘title’, ‘pubdate’,’user’) class MyPost(Post): class Meta: proxy = True class MyPostAdmin(PostAdmin): def get_queryset(self, request): return self.model.objects.filter(user = request.user) admin.site.register(Post, PostAdmin) admin.site.register(MyPost, MyPostAdmin) Then the default … Read more