supportda tuman requireddan olib tashlandi

This commit is contained in:
behruz-dev
2025-12-04 17:36:33 +05:00
parent f24a2760a9
commit eb010cb6de
4 changed files with 33 additions and 7 deletions

View File

@@ -13,7 +13,13 @@ class Support(BaseModel):
('HELP', 'yordam'),
)
district = models.ForeignKey(District, on_delete=models.CASCADE, related_name='supports')
district = models.ForeignKey(
District,
on_delete=models.SET_NULL,
related_name='supports',
blank=True,
null=True
)
problem = models.TextField()
date = models.DateField()
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='supports')