Exposing documents' "added" timestamp via Rest API.

This commit is contained in:
khrise committed 2019-01-03 20:23:34 +00:00
1 parent 2ef2bf873e
commit 0c47907dda
2 files changed
+2 -1

No files matched your search

+1 -1
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):