mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 13:06:46 +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
|
|
@ -29,10 +29,7 @@ def _tags_from_path(filepath):
|
|||
path_parts = Path(filepath).relative_to(
|
||||
settings.CONSUMPTION_DIR).parent.parts
|
||||
for part in path_parts:
|
||||
tag_ids.add(Tag.objects.get_or_create(
|
||||
slug=slugify(part),
|
||||
defaults={"name": part},
|
||||
)[0].pk)
|
||||
tag_ids.add(Tag.objects.get_or_create(name=part)[0].pk)
|
||||
|
||||
return tag_ids
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue