Prevent django_cleanup from deleting part thumbs that are used elsewhere

- Will need to implement a method for automatically deleting part thumbs...
This commit is contained in:
Oliver Walters 2020-02-11 00:29:29 +11:00
parent 8ea1086b03
commit dee47bdea8

View File

@ -23,6 +23,8 @@ from django.dispatch import receiver
from markdownx.models import MarkdownxField
from django_cleanup import cleanup
from mptt.models import TreeForeignKey
from datetime import datetime
@ -191,6 +193,7 @@ def match_part_names(match, threshold=80, reverse=True, compare_length=False):
return matches
@cleanup.ignore
class Part(models.Model):
""" The Part object represents an abstract part, the 'concept' of an actual entity.