tuman va place nomi uniquedan olib tashlandi
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.2 on 2025-11-29 09:57
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('shared', '0012_alter_doctor_extra_location'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='district',
|
||||
name='name',
|
||||
field=models.CharField(max_length=200),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='place',
|
||||
name='name',
|
||||
field=models.CharField(max_length=200),
|
||||
),
|
||||
]
|
||||
@@ -7,7 +7,7 @@ from core.apps.accounts.models import User
|
||||
|
||||
|
||||
class District(BaseModel):
|
||||
name = models.CharField(max_length=200, unique=True)
|
||||
name = models.CharField(max_length=200)
|
||||
user = models.ForeignKey(
|
||||
User, on_delete=models.CASCADE, related_name='districts', null=True
|
||||
)
|
||||
|
||||
@@ -10,7 +10,7 @@ class Place(BaseModel):
|
||||
district = models.ForeignKey(District, on_delete=models.CASCADE, related_name='places')
|
||||
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='places')
|
||||
|
||||
name = models.CharField(max_length=200, unique=True)
|
||||
name = models.CharField(max_length=200)
|
||||
longitude = models.FloatField(default=0.00)
|
||||
latitude = models.FloatField(default=0.00)
|
||||
extra_location = models.JSONField()
|
||||
|
||||
Reference in New Issue
Block a user