From 02f2c1d0862a8c0de6cea70fc02231bc8a28abd2 Mon Sep 17 00:00:00 2001 From: Rachid Mrad Date: Thu, 6 Mar 2025 15:59:38 -0500 Subject: [PATCH] Unit tests for 13 name servers --- .../templates/domain_nameservers.html | 4 +- src/registrar/tests/common.py | 43 +++++++++++++++++++ src/registrar/tests/test_views_domain.py | 42 ++++++++++++++++++ 3 files changed, 87 insertions(+), 2 deletions(-) diff --git a/src/registrar/templates/domain_nameservers.html b/src/registrar/templates/domain_nameservers.html index f201388c4..fde74920f 100644 --- a/src/registrar/templates/domain_nameservers.html +++ b/src/registrar/templates/domain_nameservers.html @@ -5,8 +5,8 @@ {% block domain_content %} - {# this is right after the messages block in the parent template. We use > not >= to account for the blank form. #} - {% if formset.total_form_count > formset.max_num %} + {# this is right after the messages block in the parent template. #} + {% if formset.initial|length >= formset.max_num %}