Skip to content

Commit f49880a

Browse files
YaserAlnajjaradamghill
authored andcommitted
Fix UnicornView circular import
1 parent 76a7948 commit f49880a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

django_unicorn/templatetags/unicorn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from django_unicorn.call_method_parser import InvalidKwarg, parse_kwarg
77

8-
from ..components import UnicornView
8+
99
from ..settings import get_setting
1010

1111

@@ -75,6 +75,7 @@ def render(self, context):
7575
except template.VariableDoesNotExist:
7676
resolved_kwargs.update({key: val})
7777

78+
from ..components import UnicornView
7879
view = UnicornView.create(
7980
component_id=component_id,
8081
component_name=self.component_name,

0 commit comments

Comments
 (0)