Skip to content

Commit

Permalink
Fix restriction for PartTestTemplate
Browse files Browse the repository at this point in the history
- limit_choices_to should be "testable", not "trackable"
- ref: inventree#7888
  • Loading branch information
SchrodingersGat committed Aug 29, 2024
1 parent 99e37de commit 03c7b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/InvenTree/part/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3605,7 +3605,7 @@ def validate_unique(self, exclude=None):
Part,
on_delete=models.CASCADE,
related_name='test_templates',
limit_choices_to={'trackable': True},
limit_choices_to={'testable': True},
verbose_name=_('Part'),
)

Expand Down

0 comments on commit 03c7b0c

Please sign in to comment.