Backwards-incompatible changes : queryset in filter

This commit is contained in:
Ludovic Stephan 2019-04-17 18:33:43 +02:00
parent 72560397a2
commit 7717d1ed34

View file

@ -754,7 +754,7 @@ def export_mega_participants(request):
@buro_required
def export_mega(request):
event = Event.objects.filter(title=MEGA_EVENT_NAME)
event = Event.objects.get(title=MEGA_EVENT_NAME)
qs = EventRegistration.objects.filter(event=event).order_by("user__username")
return csv_export_mega("all_mega_{}.csv".format(MEGA_YEAR), qs)