Skip to content

Commit

Permalink
Dynamically reload shows list in sidebar
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
sheepman4267 committed Feb 7, 2024
1 parent 10d29f9 commit 325028a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions OpenShow/slides/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ class DisplayView(DetailView):
class ShowView(DetailView):
model = Show
template_name = "slides/show.html"
extra_context = {
'shows': Show.objects.all(),
}

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['display_selector_form'] = ShowDisplaySelectorForm(instance=context['show'])
context['shows'] = Show.objects.all()
return context


Expand Down

0 comments on commit 325028a

Please sign in to comment.