mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 00:35:30 +01:00
Fix: Make customfieldinstance soft delete, fix filepath when deleted (#8067)
This commit is contained in:
parent
28fdb170bf
commit
79092c27c5
4 changed files with 64 additions and 4 deletions
|
|
@ -855,6 +855,8 @@ class DocumentSerializer(
|
|||
super().update(instance, validated_data)
|
||||
else:
|
||||
super().update(instance, validated_data)
|
||||
# hard delete custom field instances that were soft deleted
|
||||
CustomFieldInstance.deleted_objects.filter(document=instance).delete()
|
||||
return instance
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue