Display owners in admin list
This commit is contained in:
parent
f8c7b879b1
commit
f726774d21
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ from .models import RedirectUser
|
||||||
|
|
||||||
@admin.register(Redirect)
|
@admin.register(Redirect)
|
||||||
class RedirectAdmin(admin.ModelAdmin):
|
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):
|
def has_change_permission(self, request: HttpRequest, obj: Redirect = None):
|
||||||
opts = self.opts
|
opts = self.opts
|
||||||
|
|
Loading…
Reference in a new issue