2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Homepage Improvements (#5057)

* remove STOCK_RECENT_COUNT parameter

- Now "recent" is set by date
- Tables are paginated by the server

* Display total row count

* remove PART_RECENT_COUNT

- Replace with date filter
- Update Part.api

* Bump API version
This commit is contained in:
Oliver
2023-06-17 08:21:25 +10:00
committed by GitHub
parent 31ff3599eb
commit 61d2f452b2
5 changed files with 19 additions and 24 deletions

View File

@ -990,6 +990,10 @@ class PartFilter(rest_filters.FilterSet):
tags_slug = rest_filters.CharFilter(field_name='tags__slug', lookup_expr='iexact')
# Created date filters
created_before = rest_filters.DateFilter(label='Updated before', field_name='creation_date', lookup_expr='lte')
created_after = rest_filters.DateFilter(label='Updated after', field_name='creation_date', lookup_expr='gte')
class PartMixin:
"""Mixin class for Part API endpoints"""