add some new fields to quota sale transaction model - add rancher information about live stocks & quota aalocations information

This commit is contained in:
2025-08-25 16:34:48 +03:30
parent 2725bc5077
commit 4146a66950
7 changed files with 138 additions and 1 deletions

View File

@@ -474,7 +474,7 @@ class QuotaBrokerValue(BaseModel):
value = models.PositiveBigIntegerField(default=0)
def __str__(self):
return f"Quota ({self.quota.id}) for Broker({self.broker.organization.name})"
return f"Quota ({self.quota.id}) for Broker({self.broker.organization_type.name})"
def save(self, *args, **kwargs):
return super(QuotaBrokerValue, self).save(*args, **kwargs)