mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-07 23:56:23 +01:00
12 lines
254 B
Python
12 lines
254 B
Python
from django.urls import reverse
|
|
|
|
|
|
def get_admin_change_view_url(obj: object) -> str:
|
|
return reverse(
|
|
'admin:{}_{}_change'.format(
|
|
obj._meta.app_label,
|
|
type(obj).__name__.lower()
|
|
),
|
|
args=(obj.pk,)
|
|
)
|