From 851c0043da6fc9a6560aeca0f7af5f5cbc50226c Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 25 Jul 2017 20:30:37 +0200 Subject: [PATCH] zip processing for team --- rowers/views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rowers/views.py b/rowers/views.py index 7a3d0992..9d8493a5 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -7421,6 +7421,12 @@ def team_workout_upload_view(request,message="", url = reverse(team_workout_upload_view) response = HttpResponseRedirect(url) return response + elif id == -1: + message = 'The zip archive will be processed in the background. The files in the archive will only be uploaded without the extra actions. You will receive email when the workouts are ready.' + messages.info(request,message) + url = reverse(team_workout_upload_view) + response = HttpResponseRedirect(url) + return response else: successmessage = "The workout was added to the user's account"