mirror of
https://github.com/inventree/InvenTree.git
synced 2026-03-13 07:33:36 +00:00
[API] Allow filtering ScheduledTask objects by name (#11497)
* [API] Allow filtering ScheduledTask objects by name * Bump API version
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
"""InvenTree API version information."""
|
"""InvenTree API version information."""
|
||||||
|
|
||||||
# InvenTree API version
|
# InvenTree API version
|
||||||
INVENTREE_API_VERSION = 461
|
INVENTREE_API_VERSION = 462
|
||||||
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||||
|
|
||||||
INVENTREE_API_TEXT = """
|
INVENTREE_API_TEXT = """
|
||||||
|
|
||||||
|
v462 -> 2026-03-12 : https://github.com/inventree/InvenTree/pull/11497
|
||||||
|
- Allow "ScheduledTask" API endpoint to be filtered by "name" field
|
||||||
|
|
||||||
v461 -> 2026-03-10 : https://github.com/inventree/InvenTree/pull/11479
|
v461 -> 2026-03-10 : https://github.com/inventree/InvenTree/pull/11479
|
||||||
- Adds option to copy parameters when duplicating an order via the API
|
- Adds option to copy parameters when duplicating an order via the API
|
||||||
|
|
||||||
|
|||||||
@@ -608,7 +608,7 @@ class ScheduledTaskList(ListAPI):
|
|||||||
|
|
||||||
ordering_fields = ['pk', 'func', 'last_run', 'next_run']
|
ordering_fields = ['pk', 'func', 'last_run', 'next_run']
|
||||||
|
|
||||||
search_fields = ['func']
|
search_fields = ['func', 'name']
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
"""Return annotated queryset."""
|
"""Return annotated queryset."""
|
||||||
|
|||||||
Reference in New Issue
Block a user