mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-09 22:14:43 +02:00
Add more code comments
Co-authored-by: Neil MartinsenBurrell <neil.martinsen-burrell@gsa.gov>
This commit is contained in:
parent
f54276d82b
commit
f6c70f88a9
2 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue