Update admin.py

This commit is contained in:
zandercymatics 2024-04-10 15:22:49 -06:00
parent 8cee9ef8ca
commit f37eafdc53
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -1614,7 +1614,7 @@ class DomainAdmin(ListHeaderAdmin):
"""Custom changeform implementation to pass in context information"""
if extra_context is None:
extra_context = {}
extra_context["original_object"] = self.model.objects.get(pk=object_id)
# Pass in what the an extended expiration date would be for the expiration date modal
if object_id is not None:
domain = Domain.objects.get(pk=object_id)