Skip to content

Commit f13c03c

Browse files
author
Andres Vargas
committed
Fix the views
1 parent a1f3c03 commit f13c03c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def posts(request):
1515

1616

1717
class PostsLivewire(LivewireComponent):
18-
18+
template_name = "posts.livewire.html"
1919
def mount(self, **kwargs):
2020
posts = kwargs.get("posts")
2121
return {
@@ -36,6 +36,7 @@ def increment(self, *args):
3636

3737

3838
class HelloworldLivewire(LivewireComponent):
39+
template_name = "helloworld.livewire.html"
3940
message = "Hellowwwww mundo!"
4041

4142

livewire/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def get_component_name(self):
9898
def get_template_name(self):
9999
return self.template_name
100100

101-
102101
def get_context_data(self):
103102
mount_result = {}
104103
# call mount if exists

0 commit comments

Comments
 (0)