mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Disable adding through the admin
This commit is contained in:
		@@ -62,6 +62,9 @@ class DocumentAdmin(CommonAdmin):
 | 
				
			|||||||
    list_filter = ("tags", "correspondent", MonthListFilter)
 | 
					    list_filter = ("tags", "correspondent", MonthListFilter)
 | 
				
			||||||
    ordering = ["-created", "correspondent"]
 | 
					    ordering = ["-created", "correspondent"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def has_add_permission(self, request):
 | 
				
			||||||
 | 
					        return False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def created_(self, obj):
 | 
					    def created_(self, obj):
 | 
				
			||||||
        return obj.created.date().strftime("%Y-%m-%d")
 | 
					        return obj.created.date().strftime("%Y-%m-%d")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user