organization def str

This commit is contained in:
2025-08-05 16:40:44 +03:30
parent 2bc1931def
commit fdd9a5af4a

View File

@@ -254,7 +254,7 @@ class Broker(BaseModel):
required = models.BooleanField(default=False)
def __str__(self):
return f'{self.organization.name} - {self.product.name}'
return f'{self.organization_type.name} - {self.product.name}'
def save(self, *args, **kwargs):
return super(Broker, self).save(*args, **kwargs)