mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	forgot a sort field
This commit is contained in:
		| @@ -10,6 +10,7 @@ import { FilterRule } from 'src/app/data/filter-rule'; | |||||||
|  |  | ||||||
| export const DOCUMENT_SORT_FIELDS = [ | export const DOCUMENT_SORT_FIELDS = [ | ||||||
|   { field: "correspondent__name", name: "Correspondent" }, |   { field: "correspondent__name", name: "Correspondent" }, | ||||||
|  |   { field: "document_type__name", name: "Document type" }, | ||||||
|   { field: 'title', name: 'Title' }, |   { field: 'title', name: 'Title' }, | ||||||
|   { field: 'archive_serial_number', name: 'ASN' }, |   { field: 'archive_serial_number', name: 'ASN' }, | ||||||
|   { field: 'created', name: 'Created' }, |   { field: 'created', name: 'Created' }, | ||||||
|   | |||||||
| @@ -97,7 +97,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", "added", "archive_serial_number") |         "id", "title", "correspondent__name", "document_type__name", "created", "modified", "added", "archive_serial_number") | ||||||
|  |  | ||||||
|     def file_response(self, pk, disposition): |     def file_response(self, pk, disposition): | ||||||
|         #TODO: this should not be necessary here. |         #TODO: this should not be necessary here. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonas Winkler
					Jonas Winkler