Redirect and basic changes

This commit is contained in:
zandercymatics 2023-08-18 15:29:03 -06:00
parent 87bb71a214
commit bd0edf7203
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
9 changed files with 124 additions and 44 deletions

View file

@ -160,6 +160,17 @@ class DomainAdmin(ListHeaderAdmin):
return super().response_change(request, obj)
# Sets domain_id as a context var
def change_view(self, request, object_id, form_url="", extra_context=None):
extra_context = extra_context or {}
extra_context["domain_id"] = object_id
return super().change_view(
request,
object_id,
form_url,
extra_context=extra_context,
)
class ContactAdmin(ListHeaderAdmin):