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:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user