1.2.1 get_my_routes_ajax add remains_routes_count operations
This commit is contained in:
@@ -291,6 +291,11 @@ def get_my_routes_ajax(request):
|
|||||||
'html': html
|
'html': html
|
||||||
}
|
}
|
||||||
|
|
||||||
|
from SubscribesApp.funcs import get_cur_user_subscribe
|
||||||
|
user_subscribe = get_cur_user_subscribe(request.user)
|
||||||
|
if user_subscribe:
|
||||||
|
res_Dict.update(user_subscribe.remains_route_adding_options())
|
||||||
|
|
||||||
return JsonResponse(res_Dict)
|
return JsonResponse(res_Dict)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user