Skip to content

Commit

Permalink
Merge pull request the-paperless-project#471 from khrise/added-missin…
Browse files Browse the repository at this point in the history
…g-column-to-rest-api

Exposing documents' "added" timestamp via Rest API.
  • Loading branch information
danielquinn authored Jan 4, 2019
2 parents cea8332 + 0c47907 commit 75a79ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/documents/serialisers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class Meta:
"checksum",
"created",
"modified",
"added",
"file_name",
"download_url",
"thumbnail_url",
Expand Down
2 changes: 1 addition & 1 deletion src/documents/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class DocumentViewSet(RetrieveModelMixin,
filter_class = DocumentFilterSet
search_fields = ("title", "correspondent__name", "content")
ordering_fields = (
"id", "title", "correspondent__name", "created", "modified")
"id", "title", "correspondent__name", "created", "modified", "added")


class LogViewSet(ReadOnlyModelViewSet):
Expand Down

0 comments on commit 75a79ac

Please sign in to comment.