mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
Allow ordering by date fields
This commit is contained in:
parent
705a5b8a84
commit
e1203ab9ab
@ -127,7 +127,8 @@ class DocumentViewSet(RetrieveModelMixin,
|
|||||||
)
|
)
|
||||||
filter_class = DocumentFilterSet
|
filter_class = DocumentFilterSet
|
||||||
search_fields = ("title", "correspondent__name", "content")
|
search_fields = ("title", "correspondent__name", "content")
|
||||||
ordering_fields = ("id", "title", "correspondent__name")
|
ordering_fields = (
|
||||||
|
"id", "title", "correspondent__name", "created", "modified")
|
||||||
|
|
||||||
|
|
||||||
class LogViewSet(ReadOnlyModelViewSet):
|
class LogViewSet(ReadOnlyModelViewSet):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user