change: add new model and fix migrations
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Generated by Django 5.2 on 2025-08-26 12:25
|
||||
# Generated by Django 5.2 on 2025-08-27 15:49
|
||||
|
||||
import django.db.models.deletion
|
||||
import uuid
|
||||
@@ -46,6 +46,19 @@ class Migration(migrations.Migration):
|
||||
'verbose_name_plural': 'bannerlar',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Country',
|
||||
fields=[
|
||||
('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
|
||||
('created_at', models.DateField(auto_now_add=True)),
|
||||
('updated_at', models.DateField(auto_now=True)),
|
||||
('name', models.CharField(max_length=200)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Davlat',
|
||||
'verbose_name_plural': 'Davlatlar',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='News',
|
||||
fields=[
|
||||
@@ -85,11 +98,12 @@ class Migration(migrations.Migration):
|
||||
('image', models.ImageField(upload_to='service/images/')),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
'verbose_name': 'Xizmatlar',
|
||||
'verbose_name_plural': 'Xizmatlarimiz',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='SiteConfir',
|
||||
name='SiteConfig',
|
||||
fields=[
|
||||
('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
|
||||
('created_at', models.DateField(auto_now_add=True)),
|
||||
|
||||
Reference in New Issue
Block a user