diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index f71a0c5ab..bd00fe466 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -46,6 +46,7 @@ class DocumentSerializer(serializers.ModelSerializer): "checksum", "created", "modified", + "added", "file_name", "download_url", "thumbnail_url", diff --git a/src/documents/views.py b/src/documents/views.py index 9cb66b59c..186b733a5 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -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):