mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
made a serious mistake. fixed.
This commit is contained in:
parent
ebb39b13f0
commit
bf9051e44d
2 changed files with 10 additions and 4 deletions
|
|
@ -124,9 +124,9 @@ def set_tags(sender,
|
|||
**kwargs):
|
||||
|
||||
if replace:
|
||||
document.tags.exclude(
|
||||
Q(is_inbox_tag=True) |
|
||||
(Q(match="") & ~Q(matching_algorithm=Tag.MATCH_AUTO))
|
||||
Document.tags.through.objects.filter(document=document).exclude(
|
||||
Q(tag__is_inbox_tag=True)).exclude(
|
||||
Q(tag__match="") & ~Q(tag__matching_algorithm=Tag.MATCH_AUTO)
|
||||
).delete()
|
||||
|
||||
current_tags = set(document.tags.all())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue