Skip to content

Commit

Permalink
adds judges to detail view
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed Oct 16, 2024
1 parent a4ddc8f commit c383f2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions peachjam/views/causelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ class CauseListDetailView(BaseDocumentDetailView):
model = CauseList
template_name = "peachjam/causelist_detail.html"

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["judges"] = self.get_object().judges.values_list("name", flat=True)
return context


class CauseListListView(TemplateView):
template_name = "peachjam/causelist_list.html"
Expand Down

0 comments on commit c383f2e

Please sign in to comment.