base of product-quota & list cities by province

This commit is contained in:
2025-06-10 12:15:17 +03:30
parent 136f28672f
commit 2482b9bc45
17 changed files with 534 additions and 19 deletions

View File

@@ -59,6 +59,12 @@ class Province(BaseModel): # noqa
class City(BaseModel):
name = models.CharField(max_length=50)
province = models.ForeignKey(
Province,
on_delete=models.CASCADE,
related_name='cities',
null=True
)
def __str__(self):
return f'{self.name}'