mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-09 11:46:26 +00:00
Calendar view for build orders
This commit is contained in:
1 parent
76c86e7b2f
commit
47b0f40e97
6 files changed
+179
-7
No files matched your search
@@ -90,6 +90,13 @@ class BuildList(generics.ListCreateAPIView):
|
||||
if part is not None:
|
||||
queryset = queryset.filter(part=part)
|
||||
|
||||
# Filter by 'date range'
|
||||
min_date = params.get('min_date', None)
|
||||
max_date = params.get('max_date', None)
|
||||
|
||||
if min_date is not None and max_date is not None:
|
||||
queryset = Build.filterByDate(queryset, min_date, max_date)
|
||||
|
||||
return queryset
|
||||
|
||||
def get_serializer(self, *args, **kwargs):
|
||||
|
||||
Reference in new issue
Block a user