removed extraneous logging and code from views/application.py and application_wizard.py

This commit is contained in:
David Kennedy 2024-01-08 17:08:53 -05:00
parent 080d59c0b5
commit fd1bd09f6c
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 1 additions and 23 deletions

View file

@ -1,12 +1,10 @@
from __future__ import annotations # allows forward references in annotations
from itertools import zip_longest
import logging
import copy
from typing import Callable
from phonenumber_field.formfields import PhoneNumberField # type: ignore
from django import forms
from django.forms.utils import ErrorDict
from django.core.validators import RegexValidator, MaxLengthValidator
from django.utils.safestring import mark_safe
from django.db.models.fields.related import ForeignObjectRel, OneToOneField
@ -16,13 +14,9 @@ from api.views import DOMAIN_API_MESSAGES
from registrar.models import Contact, DomainApplication, DraftDomain, Domain
from registrar.templatetags.url_helpers import public_site_url
from registrar.utility import errors
from django.utils.translation import gettext_lazy as _, ngettext
logger = logging.getLogger(__name__)
TOTAL_FORM_COUNT = 'TOTAL_FORMS'
INITIAL_FORM_COUNT = 'INITIAL_FORMS'
class RegistrarForm(forms.Form):
"""
A common set of methods and configuration.
@ -688,7 +682,6 @@ class OtherContactsForm(RegistrarForm):
# That causes problems.
for field in self.fields:
if field in self.errors:
logger.info(f"deleting error {self.errors[field]}")
del self.errors[field]
# return empty object with only 'delete' attribute defined.
# this will prevent _to_database from creating an empty