Skip to content

Commit

Permalink
Hides cancel subscription button and improved the messages alert
Browse files Browse the repository at this point in the history
  • Loading branch information
sab-LC committed Oct 17, 2024
1 parent 6647218 commit c6bd8e0
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,17 +944,17 @@ def subscription(request, pk, account_type, related=None):
}
BundleType.objects.create(institution=institution, bundle_type=bundle)
create_bundle_call(request, bundle_data, access_token)
messages.add_message(
request,
messages.INFO,
(
"Thank you for your submission, "
"our team will review and be in "
"contact with the bundle contract. "
"You will be notified once your "
"request has been processed."
),
)
messages.add_message(
request,
messages.INFO,
(
"Thank you for your submission, "
"our team will review and be in "
"contact with the bundle contract. "
"You will be notified once your "
"request has been processed."
),
)
return redirect("subscription", institution.id, 'institution')
except Exception:
messages.add_message(
Expand Down Expand Up @@ -1002,17 +1002,17 @@ def subscription(request, pk, account_type, related=None):
}
BundleType.objects.create(researcher=researcher, bundle_type=bundle)
create_bundle_call(request, bundle_data, access_token)
messages.add_message(
request,
messages.INFO,
(
"Thank you for your submission, "
"our team will review and be in "
"contact with the bundle contract. "
"You will be notified once your "
"request has been processed."
),
)
messages.add_message(
request,
messages.INFO,
(
"Thank you for your submission, "
"our team will review and be in "
"contact with the bundle contract. "
"You will be notified once your "
"request has been processed."
),
)
return redirect("subscription", researcher.id, 'researcher')
except Exception:
messages.add_message(
Expand Down

0 comments on commit c6bd8e0

Please sign in to comment.