Exposing documents' "added" timestamp via Rest API.

This commit is contained in:
khrise
2019-01-03 16:54:32 +00:00
parent 2ef2bf873e
commit 0c47907dda
2 changed files with 2 additions and 1 deletions

View File

@@ -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):