Display owners in admin list

This commit is contained in:
Gabriel Augendre 2022-02-28 11:40:01 +01:00
parent f8c7b879b1
commit f726774d21

View file

@ -10,7 +10,7 @@ from .models import RedirectUser
@admin.register(Redirect)
class RedirectAdmin(admin.ModelAdmin):
list_display = ["short_code", "target_url"]
list_display = ["short_code", "owner", "group_owner", "target_url"]
def has_change_permission(self, request: HttpRequest, obj: Redirect = None):
opts = self.opts