improving formattign
This commit is contained in:
@@ -2074,11 +2074,15 @@ def workouts_bulk_actions(request):
|
||||
integration = importsources[destination](request.user)
|
||||
try:
|
||||
id = integration.workout_export(w)
|
||||
messages.info(request,'Workout {id} exported to {destination}'.format(id=encoder.encode_hex(w.id),
|
||||
destination=destination))
|
||||
messages.info(request,
|
||||
'Workout {id} exported to {destination}'.format(
|
||||
id=encoder.encode_hex(w.id),
|
||||
destination=destination))
|
||||
except NoTokenError:
|
||||
messages.error(request,'Export to {destination} of workout {id} failed'.format(id=encoder.encode_hex(w.id),
|
||||
destination=destination))
|
||||
messages.error(request,
|
||||
'Export to {destination} of workout {id} failed'.format(
|
||||
id=encoder.encode_hex(w.id),
|
||||
destination=destination))
|
||||
url = reverse('workouts_view')
|
||||
return HttpResponseRedirect(url)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user