Skip to content

Commit

Permalink
Exposing documents' "added" timestamp via Rest API.
Browse files Browse the repository at this point in the history
  • Loading branch information
khrise13 committed Jan 3, 2019
1 parent 2ef2bf8 commit 0c47907
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 0c47907

Please sign in to comment.