discount
This commit is contained in:
@@ -2661,6 +2661,13 @@ def rower_view_instantplan(request, id='', userid=0):
|
||||
'id': id,
|
||||
})
|
||||
return HttpResponseRedirect(url)
|
||||
if not can_plan(request.user):
|
||||
messages.error(
|
||||
request, 'You must be on a <a href="/rowers/paidplans">paid plan</a> to use free training plans')
|
||||
url = reverse('rower_view_instantplan', kwargs={
|
||||
'id': id,
|
||||
})
|
||||
return HttpResponseRedirect(url)
|
||||
|
||||
form = InstantPlanSelectForm(request.POST, targets=targets)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user