Added missing migrations and removed unused requirements
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 4.2.10 on 2024-03-02 09:47
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
import users.validators
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Profile',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('login', models.CharField(max_length=30, validators=[django.core.validators.RegexValidator('^[a-zA-Z0-9-]+$')])),
|
||||
('email', models.EmailField(max_length=50)),
|
||||
('password', models.CharField(max_length=100, validators=[django.core.validators.RegexValidator('^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{6,100}$')])),
|
||||
('countryCode', models.CharField(max_length=2, validators=[django.core.validators.RegexValidator('[a-zA-Z]{2}'), users.validators.CountryCodeValidator()])),
|
||||
('isPublic', models.BooleanField()),
|
||||
('phone', models.CharField(blank=True, max_length=20, null=True, validators=[django.core.validators.MaxLengthValidator(20), django.core.validators.RegexValidator('\\+[\\d]+')])),
|
||||
('image', models.URLField(blank=True, null=True)),
|
||||
],
|
||||
),
|
||||
]
|
||||
@@ -2,7 +2,6 @@ django==4.2.10
|
||||
djangorestframework==3.14.0
|
||||
python-dotenv==1.0.1
|
||||
psycopg2-binary==2.9.9
|
||||
dj-database-url==2.1.0
|
||||
django-filter==23.5
|
||||
bcrypt==4.1.2
|
||||
djangorestframework-jwt==1.11.0
|
||||
pyjwt==1.7.1
|
||||
|
||||
Reference in New Issue
Block a user