Skip to content

Commit 0c57bb0

Browse files
authored
Merge branch 'main' into lint-on-push
2 parents acd3416 + 484e0f9 commit 0c57bb0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

django_simple_bulma/templatetags/django_simple_bulma.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,17 @@
88
from django.templatetags.static import static
99
from django.utils.safestring import SafeString, mark_safe
1010

11-
from ..utils import (
12-
fontawesome_token,
13-
get_js_files,
14-
logger,
15-
themes,
16-
)
17-
1811
register = template.Library()
1912

2013

2114
@register.simple_tag
2215
def bulma(theme: str = "") -> SafeString:
2316
"""Build static files required for Bulma."""
17+
from ..utils import (
18+
get_js_files,
19+
logger,
20+
themes,
21+
)
2422
if theme and theme not in themes:
2523
logger.warning(
2624
f"Theme '{theme}' does not match any of the detected themes: {', '.join(themes)}. "
@@ -50,6 +48,7 @@ def font_awesome() -> SafeString:
5048
Returns whatever kit has been specified in BULMA_SETTINGS.
5149
If none is provided, default to version 5.14.0
5250
"""
51+
from ..utils import fontawesome_token
5352
if fontawesome_token:
5453
cdn_link = (
5554
'<link rel="preload" '

0 commit comments

Comments
 (0)