made expiration date readonly in django admin; expiration date setter not implemented; implemented renew_domain; wrote unit tests

This commit is contained in:
David Kennedy 2023-11-16 08:39:05 -05:00
parent 652086a771
commit 944c82b9f9
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
4 changed files with 95 additions and 3 deletions

View file

@ -736,7 +736,7 @@ class DomainAdmin(ListHeaderAdmin):
search_help_text = "Search by domain name."
change_form_template = "django/admin/domain_change_form.html"
change_list_template = "django/admin/domain_change_list.html"
readonly_fields = ["state"]
readonly_fields = ["state", "expiration_date"]
def export_data_type(self, request):
# match the CSV example with all the fields