mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-15 07:20:17 +02:00
11 lines
253 B
Python
11 lines
253 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,)
|
|
) |