feat: attrs on product

This commit is contained in:
2024-05-11 00:24:59 +03:00
parent dca4070db7
commit 7ce9258096
12 changed files with 25 additions and 22 deletions

View File

@@ -5,7 +5,4 @@ from models import Product, Client
class CompanyNameAttributeGetter(BaseAttributeGetter):
def get_value(self, product: Product):
client: Client = product.client
result = client.company_name
if not result:
result = ''
return result
return client.company_name