Add more code comments

Co-authored-by: Neil MartinsenBurrell <neil.martinsen-burrell@gsa.gov>
This commit is contained in:
Seamus Johnston 2023-01-13 14:43:13 -05:00
parent f54276d82b
commit f6c70f88a9
No known key found for this signature in database
GPG key ID: 2F21225985069105
2 changed files with 2 additions and 1 deletions

View file

@ -374,7 +374,7 @@ class BaseAlternativeDomainFormSet(RegistrarFormSet):
cleaned = post_data.cleaned_data if post_data is not None else {}
domain = cleaned.get("alternative_domain", None)
# matching database object exists, update it
# matching database object exists, update or delete it
if db_obj is not None and isinstance(domain, str):
entry_was_erased = domain.strip() == ""
if entry_was_erased:

View file

@ -11,6 +11,7 @@
<form class="usa-form usa-form--large" id="step__{{steps.current}}" method="post" novalidate>
{% csrf_token %}
{{ forms.0.management_form }}
{# forms.0 is a formset and this iterates over its forms #}
{% for form in forms.0.forms %}
<fieldset class="usa-fieldset">
<legend>