We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee9fa1 commit 9f42d3cCopy full SHA for 9f42d3c
xadmin/plugins/auth.py
@@ -151,6 +151,10 @@ def queryset(self, qs):
151
qs = qs.filter(**filters)
152
return qs
153
154
+ def get_list_display(self, list_display):
155
+ if self.user_owned_objects_field in list_display:
156
+ list_display.remove(self.user_owned_objects_field)
157
+ return list_display
158
159
site.register_plugin(ModelPermissionPlugin, ModelAdminView)
160
xadmin/views/base.py
@@ -557,6 +557,7 @@ def get_ordering(self):
557
"""
558
return self.ordering or () # otherwise we might try to *None, which is bad ;)
559
560
+ @filter_hook
561
def queryset(self):
562
563
Returns a QuerySet of all model instances that can be edited by the
0 commit comments