More admin controls + Fix pay/success error 500 #45

Merged
valberg merged 2 commits from benjaoming/membersystem:small-fixes into main 2024-08-04 17:12:03 +00:00
Showing only changes of commit a93a879f50 - Show all commits

View file

@ -102,7 +102,7 @@ def success(request: HttpRequest, order_id: int) -> HttpResponse:
quickly as possible. quickly as possible.
""" """
user = request.user # People just need to login to pay something, not necessarily be a member user = request.user # People just need to login to pay something, not necessarily be a member
order = models.Order.objects.get(pk=order_id, member=user) order = get_object_or_404(models.Order, pk=order_id, member=user)
context = { context = {
"order": order, "order": order,