There was an error while loading. Please reload this page.
1 parent 660c207 commit 47f8dfeCopy full SHA for 47f8dfe
1 file changed
pretalx_youtube/api.py
@@ -40,7 +40,7 @@ def __init__(self, *args, **kwargs):
40
return
41
# We only set this here as to not leak all submissions to the API interface
42
if self.instance and getattr(self.instance, "submission", None):
43
- self.fields["submission"].queryset = self.event.submissions.all().filter(
+ self.fields["submission"].queryset = self.event.submissions.filter(
44
pk=self.instance.submission.pk
45
)
46
else:
0 commit comments