fixes, orval, downloader functioning again
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Generated by Django 5.2.7 on 2026-01-17 01:37
|
||||
# Generated by Django 5.2.7 on 2026-04-20 17:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
@@ -16,7 +16,7 @@ class Migration(migrations.Migration):
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('state', models.CharField(choices=[('CREATED', 'cz#Vytvořeno'), ('FINALIZED', 'cz#Dokončeno'), ('SHIPPED', 'cz#Odesláno'), ('DELIVERED', 'cz#Doručeno'), ('CANCELLED', 'cz#Zrušeno'), ('ERROR', 'cz#Chyba')], default='CREATED', max_length=20)),
|
||||
('state', models.CharField(choices=[('CREATED', 'Vytvořeno'), ('FINALIZED', 'Dokončeno'), ('SHIPPED', 'Odesláno'), ('DELIVERED', 'Doručeno'), ('CANCELLED', 'Zrušeno'), ('ERROR', 'Chyba')], default='CREATED', max_length=20)),
|
||||
('order_id', models.CharField(blank=True, help_text='Deutsche Post order ID from API', max_length=50, null=True)),
|
||||
('customer_ekp', models.CharField(blank=True, max_length=20, null=True)),
|
||||
('recipient_name', models.CharField(max_length=200)),
|
||||
@@ -43,6 +43,8 @@ class Migration(migrations.Migration):
|
||||
('tracking_url', models.URLField(blank=True, null=True)),
|
||||
('metadata', models.JSONField(blank=True, default=dict, help_text='Raw API response data')),
|
||||
('last_error', models.TextField(blank=True, help_text='Last API error message')),
|
||||
('label_pdf', models.FileField(blank=True, help_text='Shipping label PDF', null=True, upload_to='deutschepost/labels/')),
|
||||
('label_size', models.CharField(choices=[('A4', 'A4 (210x297mm)'), ('A5', 'A5 (148x210mm)'), ('A6', 'A6 (105x148mm)')], default='A4', max_length=10)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
@@ -50,12 +52,14 @@ class Migration(migrations.Migration):
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('status', models.CharField(choices=[('CREATED', 'cz#Vytvořeno'), ('PROCESSING', 'cz#Zpracovává se'), ('COMPLETED', 'cz#Dokončeno'), ('ERROR', 'cz#Chyba')], default='CREATED', max_length=20)),
|
||||
('status', models.CharField(choices=[('CREATED', 'Vytvořeno'), ('PROCESSING', 'Zpracovává se'), ('COMPLETED', 'Dokončeno'), ('ERROR', 'Chyba')], default='CREATED', max_length=20)),
|
||||
('bulk_order_id', models.CharField(blank=True, help_text='Deutsche Post bulk order ID from API', max_length=50, null=True)),
|
||||
('bulk_order_type', models.CharField(default='MIXED_BAG', help_text='MIXED_BAG, etc.', max_length=20)),
|
||||
('description', models.CharField(blank=True, max_length=255)),
|
||||
('metadata', models.JSONField(blank=True, default=dict, help_text='Raw API response data')),
|
||||
('last_error', models.TextField(blank=True, help_text='Last API error message')),
|
||||
('bulk_label_pdf', models.FileField(blank=True, help_text='Bulk shipment label PDF', null=True, upload_to='deutschepost/bulk_labels/')),
|
||||
('paperwork_pdf', models.FileField(blank=True, help_text='Bulk shipment paperwork PDF', null=True, upload_to='deutschepost/paperwork/')),
|
||||
('deutschepost_orders', models.ManyToManyField(blank=True, related_name='bulk_orders', to='deutschepost.deutschepostorder')),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
# Generated by Django 5.2.7 on 2026-01-24 22:44
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('deutschepost', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='deutschepostbulkorder',
|
||||
name='bulk_label_pdf',
|
||||
field=models.FileField(blank=True, help_text='Bulk shipment label PDF', null=True, upload_to='deutschepost/bulk_labels/'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='deutschepostbulkorder',
|
||||
name='paperwork_pdf',
|
||||
field=models.FileField(blank=True, help_text='Bulk shipment paperwork PDF', null=True, upload_to='deutschepost/paperwork/'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='deutschepostorder',
|
||||
name='label_pdf',
|
||||
field=models.FileField(blank=True, help_text='Shipping label PDF', null=True, upload_to='deutschepost/labels/'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='deutschepostorder',
|
||||
name='label_size',
|
||||
field=models.CharField(choices=[('A4', 'A4 (210x297mm)'), ('A5', 'A5 (148x210mm)'), ('A6', 'A6 (105x148mm)')], default='A4', max_length=10),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='deutschepostbulkorder',
|
||||
name='status',
|
||||
field=models.CharField(choices=[('CREATED', 'Vytvořeno'), ('PROCESSING', 'Zpracovává se'), ('COMPLETED', 'Dokončeno'), ('ERROR', 'Chyba')], default='CREATED', max_length=20),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='deutschepostorder',
|
||||
name='state',
|
||||
field=models.CharField(choices=[('CREATED', 'Vytvořeno'), ('FINALIZED', 'Dokončeno'), ('SHIPPED', 'Odesláno'), ('DELIVERED', 'Doručeno'), ('CANCELLED', 'Zrušeno'), ('ERROR', 'Chyba')], default='CREATED', max_length=20),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user