change balance type from int to big int
This commit is contained in:
parent
d165a945d7
commit
583effafe7
3 changed files with 20 additions and 2 deletions
18
apps/users/migrations/0004_alter_user_balance.py
Normal file
18
apps/users/migrations/0004_alter_user_balance.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.1 on 2022-09-25 19:05
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0003_user_ott_user_ott_expire'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='balance',
|
||||
field=models.BigIntegerField(default=0, verbose_name='balance'),
|
||||
),
|
||||
]
|
||||
|
|
@ -117,7 +117,7 @@ class User(AbstractUser):
|
|||
ott_expire = models.DateTimeField(_('otp expire'), blank=True, null=True)
|
||||
|
||||
last_checkout_request = models.DateTimeField(_('otp expire'), max_length=30, blank=True, null=True)
|
||||
balance = models.IntegerField(_('balance'), default=0)
|
||||
balance = models.BigIntegerField(_('balance'), default=0)
|
||||
|
||||
iban = models.CharField(null=True, max_length=30, blank=True)
|
||||
iban_verified = models.BooleanField(null=True)
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ class ApiClient():
|
|||
return self._request(url=url)
|
||||
|
||||
def get_course_list(self):
|
||||
url = 'http://127.0.0.1:8000/api/courses/'
|
||||
url = 'http://markaz:8002/api/courses/'
|
||||
return self._request(url=url)
|
||||
|
||||
# create user invoice
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue