improved plugin nav capabilities

This commit is contained in:
vabene1111
2023-06-21 16:07:32 +02:00
parent fb52f34ef9
commit dd88641763
4 changed files with 32 additions and 0 deletions

View File

@@ -270,6 +270,8 @@ class Space(ExportModelOperationsMixin('space'), models.Model):
food_inherit = models.ManyToManyField(FoodInheritField, blank=True)
show_facet_count = models.BooleanField(default=False)
internal_note = models.TextField(blank=True, null=True)
def safe_delete(self):
"""
Safely deletes a space by deleting all objects belonging to the space first and then deleting the space itself