2
0
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:
Oliver
2026-03-12 18:03:31 +11:00
committed by GitHub
parent 1e2c9ed273
commit 1be08e4420
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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."""