shiforkorlar royxatini olish uchun api qoshildi

This commit is contained in:
behruz-dev
2025-11-28 15:23:02 +05:00
parent e2386dcb11
commit 120b5ea4d5
4 changed files with 230 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 5.2 on 2025-11-28 10:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shared', '0011_tourplan_date'),
]
operations = [
migrations.AlterField(
model_name='doctor',
name='extra_location',
field=models.JSONField(blank=True, null=True),
),
]

View File

@@ -21,7 +21,7 @@ class Doctor(BaseModel):
# location
longitude = models.FloatField(default=0.00)
latitude = models.FloatField(default=0.00)
extra_location = models.JSONField()
extra_location = models.JSONField(null=True, blank=True)
def __str__(self):
return f"{self.first_name} {self.last_name} - {self.work_place}"