diff --git a/src/bar/views.py b/src/bar/views.py index 747a744e..a5e3acf8 100644 --- a/src/bar/views.py +++ b/src/bar/views.py @@ -1,8 +1,12 @@ +from camps.mixins import CampViewMixin from .models import ProductCategory from django.views.generic import ListView -class MenuView(ListView): +class MenuView(CampViewMixin, ListView): model = ProductCategory template_name = "bar_menu.html" context_object_name = "categories" + + def get_queryset(self): + return super().get_queryset().filter(camp=self.camp)