mirror of
https://github.com/inventree/InvenTree.git
synced 2026-12-03 04:41:52 +00:00
Add notes to searchable fields for audit log API (#13437)
* Add notes to searchable fields for audit log * Update api version
This commit is contained in:
1 parent
092ea28330
commit
a22b5da937
2 files changed
+5
-2
No files matched your search
@@ -1,11 +1,14 @@
|
||||
"""InvenTree API version information."""
|
||||
|
||||
# InvenTree API version
|
||||
INVENTREE_API_VERSION = 589
|
||||
INVENTREE_API_VERSION = 590
|
||||
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||
|
||||
INVENTREE_API_TEXT = """
|
||||
|
||||
v590 -> 2026-12-02 : https://github.com/inventree/InvenTree/pull/13437
|
||||
- Add notes to the search field for AuditLog list endpoint
|
||||
|
||||
v589 -> 2026-12-02 : https://github.com/inventree/InvenTree/pull/13434
|
||||
- The "PartThumb" API endpoint now requires that the user has the 'part view' role permission
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@ class AuditLogViewSet(OutputOptionsMixin, viewsets.ReadOnlyModelViewSet):
|
||||
ordering_fields = ['timestamp', 'action', 'actor']
|
||||
ordering = '-timestamp'
|
||||
|
||||
search_fields = ['object_repr', 'actor__username']
|
||||
search_fields = ['object_repr', 'notes', 'actor__username']
|
||||
|
||||
def get_queryset(self):
|
||||
"""Restrict entries to those the requesting user is allowed to view."""
|
||||
|
||||
Reference in new issue
Block a user