mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 09:37:03 +02:00
Redirect and basic changes
This commit is contained in:
parent
87bb71a214
commit
bd0edf7203
9 changed files with 124 additions and 44 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue