Skip to content

Commit f7d725c

Browse files
Fixed media issue on tabbed demo
1 parent b4aab6d commit f7d725c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

demos/dashboard/demo/kitchensink/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def get_context_data(self, **kwargs):
2828
tabs = [DemoDashboard(), DynamicDashboard(request=self.request)]
2929
context["tabs"] = tabs
3030
context["initial_tab"] = tabs[0]
31+
# you'd need to combine the media for each tab, for ease just use the first dashboards media here
32+
context["dashboard"] = tabs[0]
3133
return context
3234

3335

docs/dashboards/howto/views.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ is how you'd make tabbed dashboards, which leverage HTMXs lazy loading and parti
114114
tabs = [DemoDashboard(), DynamicDashboard(request=self.request)]
115115
context["tabs"] = tabs
116116
context["initial_tab"] = tabs[0]
117+
# you'd need to combine the media for each tab, for ease just use the first dashboards media here
118+
context["dashboard"] = tabs[0]
117119
return context
118120

119121
# templates/tabbed.html

0 commit comments

Comments
 (0)