account sidebar urls
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.1 on 2025-05-19 10:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('api', '0002_userprofile_account_type_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='userprofile',
|
||||
name='account_type',
|
||||
field=models.CharField(choices=[('lite', 'Lite'), ('standart', 'Standart'), ('premium', 'Premium')], default='free', verbose_name='Тип аккаунта'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.1 on 2025-05-19 10:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('api', '0003_alter_userprofile_account_type'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='userprofile',
|
||||
name='account_type',
|
||||
field=models.CharField(choices=[('lite', 'Lite'), ('standart', 'Standart'), ('premium', 'Premium')], default='lite', verbose_name='Тип аккаунта'),
|
||||
),
|
||||
]
|
||||
@@ -5,7 +5,7 @@ import uuid
|
||||
|
||||
class UserProfile(models.Model):
|
||||
user = models.OneToOneField(User, on_delete=models.CASCADE)
|
||||
account_type = models.CharField(choices=account_types, default='free')
|
||||
account_type = models.CharField(choices=account_types, default='lite', verbose_name="Тип аккаунта")
|
||||
is_active = models.BooleanField(default=True)
|
||||
phone_number = models.CharField(max_length=13, verbose_name="Номер телефона")
|
||||
birthday = models.DateField(null=True, blank=True, verbose_name="Дата рождения")
|
||||
|
||||
Reference in New Issue
Block a user