Set federal agency if none exist

This commit is contained in:
zandercymatics 2024-05-14 14:00:32 -06:00
parent 6d0220e77a
commit e30650abee
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -751,6 +751,10 @@ class DomainRequest(TimeStampedModel):
domain request into an admin on that domain. It also triggers an email
notification."""
if self.federal_agency is None:
self.federal_agency = "Non-Federal Agency"
self.save()
# create the domain
Domain = apps.get_model("registrar.Domain")