mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:26:47 +01:00
removed slugs entirely, since their only purpose was purely cosmetic anyway.
This commit is contained in:
parent
5753c83618
commit
74a99cf330
9 changed files with 55 additions and 36 deletions
|
|
@ -17,8 +17,6 @@ class CorrespondentAdmin(admin.ModelAdmin):
|
|||
list_filter = ("matching_algorithm",)
|
||||
list_editable = ("match", "matching_algorithm")
|
||||
|
||||
readonly_fields = ("slug",)
|
||||
|
||||
|
||||
class TagAdmin(admin.ModelAdmin):
|
||||
|
||||
|
|
@ -31,8 +29,6 @@ class TagAdmin(admin.ModelAdmin):
|
|||
list_filter = ("colour", "matching_algorithm")
|
||||
list_editable = ("colour", "match", "matching_algorithm")
|
||||
|
||||
readonly_fields = ("slug", )
|
||||
|
||||
|
||||
class DocumentTypeAdmin(admin.ModelAdmin):
|
||||
|
||||
|
|
@ -44,8 +40,6 @@ class DocumentTypeAdmin(admin.ModelAdmin):
|
|||
list_filter = ("matching_algorithm",)
|
||||
list_editable = ("match", "matching_algorithm")
|
||||
|
||||
readonly_fields = ("slug",)
|
||||
|
||||
|
||||
class DocumentAdmin(admin.ModelAdmin):
|
||||
|
||||
|
|
@ -106,7 +100,7 @@ class DocumentAdmin(admin.ModelAdmin):
|
|||
for tag in obj.tags.all():
|
||||
r += self._html_tag(
|
||||
"span",
|
||||
tag.slug + ", "
|
||||
tag.name + ", "
|
||||
)
|
||||
return r
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue