mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-23 08:16:14 +00:00
edit / delete existing notes from the UI
This commit is contained in:
1 parent
9e91663d07
commit
5813c4baea
3 files changed
+143
-56
No files matched your search
@@ -865,7 +865,8 @@ class NoteList(NoteMixin, ListCreateAPI):
|
||||
filter_backends = SEARCH_ORDER_FILTER
|
||||
filterset_class = NoteFilter
|
||||
|
||||
ordering_fields = ['model_id', 'model_type', 'user', 'creation']
|
||||
ordering = '-primary'
|
||||
ordering_fields = ['model_id', 'model_type', 'user', 'creation', 'primary']
|
||||
search_fields = ['content', 'model_id', 'model_type', 'user__username']
|
||||
unique_create_fields = ['model_type', 'model_id']
|
||||
|
||||
|
||||
Reference in new issue
Block a user