Update src/registrar/admin.py

Co-authored-by: zandercymatics <141044360+zandercymatics@users.noreply.github.com>
This commit is contained in:
Rachid Mrad 2024-10-08 12:57:04 -04:00 committed by GitHub
parent b1dd91f773
commit 99c112afd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2017,7 +2017,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
if obj_is_not_approved and not obj.domain_is_not_active():
# REDUNDANT CHECK / ERROR SCREEN AVOIDANCE:
# This action (moving a request from approved to
# another status when the domain is already active (READY),
# another status) when the domain is already active (READY),
# would still not go through even without this check as the rules are
# duplicated in the model and the error is raised from the model.
# This avoids an ugly Django error screen.