only show approved speakers

This commit is contained in:
Thomas Steen Rasmussen 2017-03-08 02:02:08 +01:00
parent e233d15de3
commit 271bfccfff

View file

@ -124,7 +124,10 @@ class SpeakerListView(CampViewMixin, ListView):
template_name = 'speaker_list.html' template_name = 'speaker_list.html'
def get_queryset(self, *args, **kwargs): def get_queryset(self, *args, **kwargs):
return models.Speaker.objects.filter(camp=self.camp) return models.Speaker.objects.filter(
camp=self.camp,
submission_status=models.Speaker.SUBMISSION_APPROVED
)
class EventListView(CampViewMixin, ListView): class EventListView(CampViewMixin, ListView):