fixed infinite recursion with type attribute of product asset NEXT: write Asset.logs and Asset.get_logs_of_type(type)

This commit is contained in:
2024-11-02 20:54:10 +01:00
parent a91a2750c9
commit ba5afc852b
4 changed files with 13 additions and 35 deletions

View File

@@ -41,5 +41,6 @@ class Product(Asset):
class Meta(Asset.Meta):
name = 'product'
type, path = Asset.Meta.get_type_and_path(name)
type = jsonapi_requests.orm.RelationField('product_type')
# do not rename to type as that will end in infinite recursion
product_type = jsonapi_requests.orm.RelationField('product_type')