From 3a9534cd50829340496c46e61afec8600a685f99 Mon Sep 17 00:00:00 2001 From: Zahraa Basheer <68440929+zhr9797@users.noreply.github.com> Date: Sun, 7 Nov 2021 19:06:33 +0300 Subject: [PATCH 1/5] Update authorization.py --- account/authorization.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account/authorization.py b/account/authorization.py index 661ada1..d732425 100644 --- a/account/authorization.py +++ b/account/authorization.py @@ -25,3 +25,4 @@ def get_tokens_for_user(user): 'access': str(token), } + From ce240e66a2ae9251b692fb7f0ee374a38a399d74 Mon Sep 17 00:00:00 2001 From: Zahraa Basheer <68440929+zhr9797@users.noreply.github.com> Date: Sun, 7 Nov 2021 19:38:02 +0300 Subject: [PATCH 2/5] Add files via upload --- account/migrations/0002_alter_user_options.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 account/migrations/0002_alter_user_options.py diff --git a/account/migrations/0002_alter_user_options.py b/account/migrations/0002_alter_user_options.py new file mode 100644 index 0000000..291ee0f --- /dev/null +++ b/account/migrations/0002_alter_user_options.py @@ -0,0 +1,17 @@ +# Generated by Django 3.2.9 on 2021-11-04 13:03 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('account', '0001_initial'), + ] + + operations = [ + migrations.AlterModelOptions( + name='user', + options={'verbose_name': 'user', 'verbose_name_plural': 'users'}, + ), + ] From fcae6e8d92cde8f0449a2ea0e4e148532125bf4b Mon Sep 17 00:00:00 2001 From: Zahraa Basheer <68440929+zhr9797@users.noreply.github.com> Date: Sun, 7 Nov 2021 19:38:41 +0300 Subject: [PATCH 3/5] Add files via upload --- account/views.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 account/views.py diff --git a/account/views.py b/account/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/account/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. From b8e2a211aaa7cbe5dd2542901b76292abf78d993 Mon Sep 17 00:00:00 2001 From: Zahraa Basheer <68440929+zhr9797@users.noreply.github.com> Date: Sun, 7 Nov 2021 19:39:38 +0300 Subject: [PATCH 4/5] Add files via upload --- commerce/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 commerce/utils.py diff --git a/commerce/utils.py b/commerce/utils.py new file mode 100644 index 0000000..c33c15a --- /dev/null +++ b/commerce/utils.py @@ -0,0 +1,6 @@ +import string, random + + + +def gen_ref_code(length=4): + return ''.join(random.choice(string.ascii_letters+string.digits) for _ in range(length)) From a7a2534c59bff555f7069700d11debb913d400e8 Mon Sep 17 00:00:00 2001 From: Zahraa Basheer <68440929+zhr9797@users.noreply.github.com> Date: Sun, 7 Nov 2021 19:45:01 +0300 Subject: [PATCH 5/5] Update requirements.txt --- requirements.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/requirements.txt b/requirements.txt index 5d025cd..1d4cd9c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,16 @@ asgiref==3.4.1 Django==3.2.8 django-ninja==0.16.1 +dnspython==2.1.0 +ecdsa==0.17.0 +email-validator==1.1.3 +idna==3.3 Pillow==8.4.0 +pyasn1==0.4.8 pydantic==1.8.2 +python-jose==3.3.0 pytz==2021.3 +rsa==4.7.2 +six==1.16.0 sqlparse==0.4.2 typing-extensions==3.10.0.2