Update function name

This commit is contained in:
Rebecca Hsieh 2024-08-30 11:18:45 -07:00
parent 2e053936e7
commit 2eef22f895
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -330,7 +330,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
</details>
{% endif %}
{% endwith %}
{% elif field.field.name == "state_territory" and original_object|model_name != 'portfolio' %}
{% elif field.field.name == "state_territory" and original_object|model_name_lowercase != 'portfolio' %}
<div class="flex-container margin-top-2">
<span>
CISA region:

View file

@ -172,5 +172,5 @@ def has_contact_info(user):
@register.filter
def model_name(instance):
def model_name_lowercase(instance):
return instance.__class__.__name__.lower()