mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Fix broken date range search
This commit is contained in:
		@@ -468,6 +468,8 @@ class DocumentViewSet(
 | 
			
		||||
class SearchResultSerializer(DocumentSerializer):
 | 
			
		||||
    def to_representation(self, instance):
 | 
			
		||||
        doc = Document.objects.get(id=instance["id"])
 | 
			
		||||
        comments = ""
 | 
			
		||||
        if hasattr(instance.results.q, "subqueries"):
 | 
			
		||||
            commentTerm = instance.results.q.subqueries[0]
 | 
			
		||||
            comments = ",".join(
 | 
			
		||||
                [
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user