2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

PartParameter API improvements (#5094)

* PartParameter: Include template_detail by default

* PartParameter API updates

- Allow sorting by template name
- Refactor with mixin class

* Bug fixes

* Bump API version
This commit is contained in:
Oliver
2023-06-24 01:04:11 +10:00
committed by GitHub
parent fab738cd75
commit 24b554a8d2
3 changed files with 27 additions and 15 deletions

View File

@ -242,7 +242,7 @@ class PartParameterSerializer(InvenTree.serializers.InvenTreeModelSerializer):
Allows us to optionally include or exclude particular information
"""
template_detail = kwargs.pop('template_detail', False)
template_detail = kwargs.pop('template_detail', True)
super().__init__(*args, **kwargs)