Skip to content

Accessing order.purchases[0].product.category.code triggers AttributeError #14

@rambo

Description

@rambo

o.purchases[0].product.category.code
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'NoneType' object has no attribute 'code'

This is because access to the category property which is set on the class does not trigger fetching of full object in the lazy-loaded product.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions