diff --git a/python/nav/web/crispyforms.py b/python/nav/web/crispyforms.py index b3e46cd33d..2ab21277fc 100644 --- a/python/nav/web/crispyforms.py +++ b/python/nav/web/crispyforms.py @@ -102,7 +102,7 @@ class FormRow: :param css_classes: Additional CSS classes to apply to the row. Defaults to an empty string. """ - def __init__(self, fields: list, css_classes: str = ''): + def __init__(self, fields: list, css_classes: Optional[str] = None): """Constructor method""" self.fields = fields self.css_classes = css_classes diff --git a/python/nav/web/templates/custom_crispy_templates/form_row.html b/python/nav/web/templates/custom_crispy_templates/form_row.html index e2d6db4476..6f072760ef 100644 --- a/python/nav/web/templates/custom_crispy_templates/form_row.html +++ b/python/nav/web/templates/custom_crispy_templates/form_row.html @@ -1,7 +1,7 @@ {# NB! This form row can only render fields that are supported by custom_crispy_templates/_form_field.html #}
{% block formrow_content %} {% for field in field.fields %}