mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	show the filename in the admin.
This commit is contained in:
		| @@ -32,7 +32,7 @@ class TagAdmin(admin.ModelAdmin): | |||||||
|     list_filter = ("colour", "matching_algorithm") |     list_filter = ("colour", "matching_algorithm") | ||||||
|     list_editable = ("colour", "match", "matching_algorithm") |     list_editable = ("colour", "match", "matching_algorithm") | ||||||
|  |  | ||||||
|     readonly_fields = ("slug",) |     readonly_fields = ("slug", ) | ||||||
|  |  | ||||||
|  |  | ||||||
| class DocumentTypeAdmin(admin.ModelAdmin): | class DocumentTypeAdmin(admin.ModelAdmin): | ||||||
| @@ -51,9 +51,9 @@ class DocumentTypeAdmin(admin.ModelAdmin): | |||||||
| class DocumentAdmin(admin.ModelAdmin): | class DocumentAdmin(admin.ModelAdmin): | ||||||
|  |  | ||||||
|     search_fields = ("correspondent__name", "title", "content", "tags__name") |     search_fields = ("correspondent__name", "title", "content", "tags__name") | ||||||
|     readonly_fields = ("added", "file_type", "storage_type",) |     readonly_fields = ("added", "file_type", "storage_type", "filename") | ||||||
|     list_display = ("title", "created", "added", "correspondent", |     list_display = ("title", "created", "added", "correspondent", | ||||||
|                     "tags_", "archive_serial_number", "document_type") |                     "tags_", "archive_serial_number", "document_type", "filename") | ||||||
|     list_filter = ( |     list_filter = ( | ||||||
|         "document_type", |         "document_type", | ||||||
|         "tags", |         "tags", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonas Winkler
					Jonas Winkler