shared: district api unique_together field qoshildi

This commit is contained in:
behruz
2025-12-11 18:19:29 +05:00
parent 445ae78095
commit f293cc7018
4 changed files with 27 additions and 0 deletions

View File

@@ -14,3 +14,6 @@ class District(BaseModel):
def __str__(self):
return self.name
class Meta:
unique_together = ('user', 'name')