1.0.4 subscribe page w dynamically load
This commit is contained in:
@@ -28,7 +28,7 @@ def get_subscribes_w_options():
|
||||
|
||||
def check_n_enable_subscribe_by_order(order):
|
||||
|
||||
subscribes_for_user = SubscribeForUser.objects.filter(user=order.user)
|
||||
subscribes_for_user = []#SubscribeForUser.objects.filter(user=order.user)
|
||||
|
||||
if order and order.enable and order.status == 'charged':
|
||||
kwargs = {
|
||||
@@ -80,7 +80,9 @@ def get_profile_subscribe_page_content_Dict(request):
|
||||
error = f'{order.status}'
|
||||
if 'status' in order.json_data and 'failure_message' in order.json_data['status']:
|
||||
error = f'{error} ({order.json_data["status"]["failure_message"]})'
|
||||
subscribes.get(id=order.subscribe.id).order_error = error
|
||||
for subscribe in subscribes:
|
||||
if subscribe == order.subscribe:
|
||||
subscribe.order_error = error
|
||||
check_orders_required = False
|
||||
else:
|
||||
check_orders_required = True
|
||||
|
||||
Reference in New Issue
Block a user