fix
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 4 Mar 2025 13:20:42 +0000 (14:20 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 4 Mar 2025 13:20:42 +0000 (14:20 +0100)
src/club/views.py

index 221ee9e..b2657e6 100644 (file)
@@ -262,7 +262,7 @@ def receipt(request):
     receipt = models.PayUOrder.generate_receipt(email, year)
     if receipt:
         content, optout, payments = receipt
-    if not content:
+    else:
         return HttpResponse('no content')
     return HttpResponse(
         content,