fix quota group to array

This commit is contained in:
2025-08-06 09:27:24 +03:30
parent 0b53df4dfe
commit 2449780298
8 changed files with 134 additions and 3 deletions

View File

@@ -346,10 +346,10 @@ class Quota(BaseModel):
)
month_choices = ArrayField(base_field=models.IntegerField(), null=True)
sale_license = ArrayField(base_field=models.IntegerField(), null=True)
group = models.CharField(
group = ArrayField(base_field=models.CharField(
max_length=50,
choices=[("rural", "روستایی"), ("industrial", "صنعتی"), ("nomadic", "عشایری")] # noqa
)
choices=[("rural", "روستایی"), ("industrial", "صنعتی"), ("nomadic", "عشایری")], # noqa
), null=True)
has_distribution_limit = models.BooleanField(default=False)
distribution_mode = ArrayField(base_field=models.IntegerField(), blank=True, null=True)
has_organization_limit = models.BooleanField(default=False)