Set modal form title

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

No files matched your search

+2 -1
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