internal fixes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Generated by Django 5.2.1 on 2025-05-24 11:12
|
||||
# Generated by Django 5.2.1 on 2025-05-24 12:05
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
@@ -7,6 +9,7 @@ class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('routes', '0003_alter_route_owner_type'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
@@ -14,9 +17,12 @@ class Migration(migrations.Migration):
|
||||
name='Leads',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('moving_price', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
|
||||
('moving_date', models.DateField()),
|
||||
('comment', models.CharField(blank=True, max_length=500, null=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('moving_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Перевозчик')),
|
||||
('route', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='routes.route', verbose_name='Маршрут')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Заявка',
|
||||
|
||||
18
backend/routes/migrations/0005_alter_leads_moving_price.py
Normal file
18
backend/routes/migrations/0005_alter_leads_moving_price.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.1 on 2025-05-24 12:09
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('routes', '0004_leads'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='leads',
|
||||
name='moving_price',
|
||||
field=models.DecimalField(decimal_places=2, max_digits=10),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user