Skip to content

Commit dba9a40

Browse files
fix model traversal
1 parent 6a2c516 commit dba9a40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dojo/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ def delete(self, *args, **kwargs):
16531653
# Suppressing a potential issue created from async delete removing
16541654
# related objects in a separate task
16551655
from dojo.utils import perform_product_grading # noqa: PLC0415 circular import
1656-
perform_product_grading(self.test.engagement.product)
1656+
perform_product_grading(self.product)
16571657

16581658
def inherit_tags(self, potentially_existing_tags):
16591659
# get a copy of the tags to be inherited
@@ -2260,7 +2260,7 @@ def delete(self, *args, product_grading_option=True, **kwargs):
22602260
# Suppressing a potential issue created from async delete removing
22612261
# related objects in a separate task
22622262
from dojo.utils import perform_product_grading # noqa: PLC0415 circular import
2263-
perform_product_grading(self.test.engagement.product)
2263+
perform_product_grading(self.engagement.product)
22642264

22652265
@property
22662266
def statistics(self):

0 commit comments

Comments
 (0)