mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	Allow ordering by date fields
This commit is contained in:
		
							parent
							
								
									705a5b8a84
								
							
						
					
					
						commit
						e1203ab9ab
					
				@ -127,7 +127,8 @@ class DocumentViewSet(RetrieveModelMixin,
 | 
				
			|||||||
    )
 | 
					    )
 | 
				
			||||||
    filter_class = DocumentFilterSet
 | 
					    filter_class = DocumentFilterSet
 | 
				
			||||||
    search_fields = ("title", "correspondent__name", "content")
 | 
					    search_fields = ("title", "correspondent__name", "content")
 | 
				
			||||||
    ordering_fields = ("id", "title", "correspondent__name")
 | 
					    ordering_fields = (
 | 
				
			||||||
 | 
					        "id", "title", "correspondent__name", "created", "modified")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class LogViewSet(ReadOnlyModelViewSet):
 | 
					class LogViewSet(ReadOnlyModelViewSet):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user