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