Skip to content

Commit

Permalink
Update src/django_bootstrap5/html.py
Browse files Browse the repository at this point in the history
Co-authored-by: François Freitag <[email protected]>
  • Loading branch information
dyve and francoisfreitag authored Dec 16, 2024
1 parent 704fcf3 commit c2dd052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/django_bootstrap5/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def render_link_tag(url):

def has_prefix(name, prefixes):
"""Return whether the name has one of the given prefixes."""
return any(name.startswith(f"{prefix}_") for prefix in prefixes)
return name.startswith(tuple(f"{prefix}_" for prefix in prefixes))


def hyphenate(attr_name):
Expand Down

0 comments on commit c2dd052

Please sign in to comment.