Chunk responses
This commit is contained in:
parent
dc6b7f43ef
commit
ae33da0de4
1 changed files with 5 additions and 0 deletions
5
vendor/regidesk/regidesk/views.py
vendored
5
vendor/regidesk/regidesk/views.py
vendored
|
@ -246,6 +246,7 @@ def boarding_send(request):
|
||||||
template_pk = request.session['template']
|
template_pk = request.session['template']
|
||||||
template = BoardingPassTemplate.objects.get(pk=template_pk)
|
template = BoardingPassTemplate.objects.get(pk=template_pk)
|
||||||
|
|
||||||
|
i = 0
|
||||||
for attendee in attendees:
|
for attendee in attendees:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -274,4 +275,8 @@ def boarding_send(request):
|
||||||
|
|
||||||
request.session['boarding_attendees'].remove(attendee.pk)
|
request.session['boarding_attendees'].remove(attendee.pk)
|
||||||
|
|
||||||
|
i += 1
|
||||||
|
if i == 10:
|
||||||
|
return redirect("regidesk:boarding_send")
|
||||||
|
|
||||||
return redirect("regidesk:boarding_overview")
|
return redirect("regidesk:boarding_overview")
|
||||||
|
|
Loading…
Reference in a new issue