tuman va place nomi uniquedan olib tashlandi

This commit is contained in:
behruz-dev
2025-11-29 15:02:57 +05:00
parent aa38215428
commit a6c2bcfe16
3 changed files with 25 additions and 2 deletions

View File

@@ -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
)