mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Disable adding through the admin
This commit is contained in:
parent
8bc2dfe4c6
commit
351cd06ef7
1 changed files with 3 additions and 0 deletions
|
|
@ -62,6 +62,9 @@ class DocumentAdmin(CommonAdmin):
|
|||
list_filter = ("tags", "correspondent", MonthListFilter)
|
||||
ordering = ["-created", "correspondent"]
|
||||
|
||||
def has_add_permission(self, request):
|
||||
return False
|
||||
|
||||
def created_(self, obj):
|
||||
return obj.created.date().strftime("%Y-%m-%d")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue