mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Add metadata field: has archive version
This commit is contained in:
		
							parent
							
								
									af99cbccd9
								
							
						
					
					
						commit
						cb9e5b5ee3
					
				@ -169,6 +169,7 @@ class DocumentViewSet(RetrieveModelMixin,
 | 
			
		||||
                "paperless__checksum": doc.checksum,
 | 
			
		||||
                "paperless__mime_type": doc.mime_type,
 | 
			
		||||
                "paperless__filename": doc.filename,
 | 
			
		||||
                "paperless__has_archive_version": os.path.isfile(doc.archive_path)
 | 
			
		||||
            })
 | 
			
		||||
        except Document.DoesNotExist:
 | 
			
		||||
            raise Http404()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user