mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Allow ordering by date fields
This commit is contained in:
parent
705a5b8a84
commit
e1203ab9ab
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue