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:
1 parent
a91a2750c9
commit
ba5afc852b
4 files changed
+13
-35
No files matched your search
@@ -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