Skip to content

Commit

Permalink
Make css_classes optional
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit authored Nov 12, 2024
1 parent 31de3bf commit a730cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nav/web/crispyforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class FormDiv:
:param css_classes: Additional CSS classes to apply to the div.
"""

def __init__(self, fields: Optional[list] = None, css_classes: str = ''):
def __init__(self, fields: Optional[list] = None, css_classes: Optional[str] = None):
self.fields = fields
self.css_classes = css_classes
self.template = 'custom_crispy_templates/form_div.html'

0 comments on commit a730cb4

Please sign in to comment.