mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
Exposing documents' "added" timestamp via Rest API.
This commit is contained in:
parent
2ef2bf873e
commit
0c47907dda
2 changed files with 2 additions and 1 deletions
|
|
@ -46,6 +46,7 @@ class DocumentSerializer(serializers.ModelSerializer):
|
||||||
"checksum",
|
"checksum",
|
||||||
"created",
|
"created",
|
||||||
"modified",
|
"modified",
|
||||||
|
"added",
|
||||||
"file_name",
|
"file_name",
|
||||||
"download_url",
|
"download_url",
|
||||||
"thumbnail_url",
|
"thumbnail_url",
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ class DocumentViewSet(RetrieveModelMixin,
|
||||||
filter_class = DocumentFilterSet
|
filter_class = DocumentFilterSet
|
||||||
search_fields = ("title", "correspondent__name", "content")
|
search_fields = ("title", "correspondent__name", "content")
|
||||||
ordering_fields = (
|
ordering_fields = (
|
||||||
"id", "title", "correspondent__name", "created", "modified")
|
"id", "title", "correspondent__name", "created", "modified", "added")
|
||||||
|
|
||||||
|
|
||||||
class LogViewSet(ReadOnlyModelViewSet):
|
class LogViewSet(ReadOnlyModelViewSet):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue