2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 13:56:30 +00:00

Set modal form title

This commit is contained in:
Oliver
2021-06-26 14:30:14 +10:00
parent 565631ef87
commit 949c7dd81b
2 changed files with 15 additions and 9 deletions

View File

@ -337,8 +337,9 @@ class PartDetail(generics.RetrieveUpdateDestroyAPIView):
def get_serializer(self, *args, **kwargs):
# By default, include 'category_detail' information in the detail view
try:
kwargs['category_detail'] = str2bool(self.request.query_params.get('category_detail', False))
kwargs['category_detail'] = str2bool(self.request.query_params.get('category_detail', True))
except AttributeError:
pass