diff --git a/.DS_Store b/.DS_Store index c218e44b..ccbeaa6d 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/osinaweb/.DS_Store b/osinaweb/.DS_Store index 6046a9c2..4057deb9 100644 Binary files a/osinaweb/.DS_Store and b/osinaweb/.DS_Store differ diff --git a/osinaweb/billing/.DS_Store b/osinaweb/billing/.DS_Store index 976061f8..9e17a95e 100644 Binary files a/osinaweb/billing/.DS_Store and b/osinaweb/billing/.DS_Store differ diff --git a/osinaweb/customercore/.DS_Store b/osinaweb/customercore/.DS_Store index d4651521..43b4e677 100644 Binary files a/osinaweb/customercore/.DS_Store and b/osinaweb/customercore/.DS_Store differ diff --git a/osinaweb/customercore/__pycache__/views.cpython-310.pyc b/osinaweb/customercore/__pycache__/views.cpython-310.pyc index 8c041e28..c6b73aca 100644 Binary files a/osinaweb/customercore/__pycache__/views.cpython-310.pyc and b/osinaweb/customercore/__pycache__/views.cpython-310.pyc differ diff --git a/osinaweb/customercore/payment/__pycache__/views.cpython-310.pyc b/osinaweb/customercore/payment/__pycache__/views.cpython-310.pyc index 488cde5a..daf0e55f 100644 Binary files a/osinaweb/customercore/payment/__pycache__/views.cpython-310.pyc and b/osinaweb/customercore/payment/__pycache__/views.cpython-310.pyc differ diff --git a/osinaweb/customercore/payment/views.py b/osinaweb/customercore/payment/views.py index a6704b15..bf874e15 100644 --- a/osinaweb/customercore/payment/views.py +++ b/osinaweb/customercore/payment/views.py @@ -9,6 +9,7 @@ import base64 import json import random import string +from customercore.views import * def basic_auth_header(username, password): @@ -349,6 +350,6 @@ def buy_free_osicard(request): response = requests.post(api_url, json=api_data) print(response) - return redirect('customerorders') + return redirect_osicard(request) diff --git a/osinaweb/customercore/views.py b/osinaweb/customercore/views.py index 179f8c19..90978f35 100644 --- a/osinaweb/customercore/views.py +++ b/osinaweb/customercore/views.py @@ -6,6 +6,7 @@ from .models import * from django.db.models import Q from django.http import Http404 from django.db.models import OuterRef, Subquery +from customercore.views import * diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index d8dc9ae1..37ca83ac 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/osinacore/.DS_Store b/osinaweb/osinacore/.DS_Store index bbd6ffd4..8e69c18f 100644 Binary files a/osinaweb/osinacore/.DS_Store and b/osinaweb/osinacore/.DS_Store differ diff --git a/osinaweb/osinacore/__pycache__/views.cpython-310.pyc b/osinaweb/osinacore/__pycache__/views.cpython-310.pyc index 963ab181..2accf427 100644 Binary files a/osinaweb/osinacore/__pycache__/views.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/views.cpython-310.pyc differ