We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc8c4e2 + 946be07 commit 3a565ceCopy full SHA for 3a565ce
sponsor/viewsets.py
@@ -40,7 +40,7 @@ class SponsorLevelViewSet(ModelViewSet):
40
http_method_names = ["get", "post", "put", "delete"]
41
42
def get_queryset(self):
43
- return SponsorLevel.objects.get_queryset()
+ return SponsorLevel.objects.filter(year=self.request.version).get_queryset()
44
45
def get_serializer_class(self):
46
match self.action:
@@ -159,7 +159,7 @@ class SponsorRemainingAccountViewSet(ModelViewSet):
159
http_method_names = ["get"]
160
161
162
- return SponsorLevel.objects.all()
+ return SponsorLevel.objects.filter(year=self.request.version).all()
163
164
def list(self, request, *args, **kwargs):
165
queryset = SponsorLevel.objects.all().order_by("-price")
0 commit comments