add 2 new fields city & province in device - fix bug of filter_by_region

This commit is contained in:
2025-10-27 14:42:51 +03:30
parent bb9f8a645e
commit 5d6529cb36
7 changed files with 72 additions and 15 deletions

View File

@@ -0,0 +1,25 @@
# Generated by Django 5.0 on 2025-10-27 10:38
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('authentication', '0039_remove_organizationtype_region_scope'),
('pos_device', '0075_posfreeproducts_company_fee'),
]
operations = [
migrations.AddField(
model_name='device',
name='city',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='devices', to='authentication.city'),
),
migrations.AddField(
model_name='device',
name='province',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='devices', to='authentication.province'),
),
]