mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #30 from SchrodingersGat/master
Fix for part category API
This commit is contained in:
commit
5b255e9e64
@ -39,4 +39,4 @@ class PartCategoryList(generics.ListAPIView):
|
|||||||
Categories are considered "top-level" if they do not have a parent
|
Categories are considered "top-level" if they do not have a parent
|
||||||
"""
|
"""
|
||||||
queryset = PartCategory.objects.filter(parent=None)
|
queryset = PartCategory.objects.filter(parent=None)
|
||||||
serializer_class = PartCategoryBriefSerializer
|
serializer_class = PartCategoryDetailSerializer
|
||||||
|
Loading…
Reference in New Issue
Block a user