mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-28 03:46:06 -05:00 
			
		
		
		
	Exposing documents' "added" timestamp via Rest API.
This commit is contained in:
		| @@ -46,6 +46,7 @@ class DocumentSerializer(serializers.ModelSerializer): | |||||||
|             "checksum", |             "checksum", | ||||||
|             "created", |             "created", | ||||||
|             "modified", |             "modified", | ||||||
|  |             "added", | ||||||
|             "file_name", |             "file_name", | ||||||
|             "download_url", |             "download_url", | ||||||
|             "thumbnail_url", |             "thumbnail_url", | ||||||
|   | |||||||
| @@ -130,7 +130,7 @@ class DocumentViewSet(RetrieveModelMixin, | |||||||
|     filter_class = DocumentFilterSet |     filter_class = DocumentFilterSet | ||||||
|     search_fields = ("title", "correspondent__name", "content") |     search_fields = ("title", "correspondent__name", "content") | ||||||
|     ordering_fields = ( |     ordering_fields = ( | ||||||
|         "id", "title", "correspondent__name", "created", "modified") |         "id", "title", "correspondent__name", "created", "modified", "added") | ||||||
|  |  | ||||||
|  |  | ||||||
| class LogViewSet(ReadOnlyModelViewSet): | class LogViewSet(ReadOnlyModelViewSet): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 khrise
					khrise