This commit is contained in:
imperosol
2025-04-21 20:37:01 +02:00
parent 9a0ae505e0
commit e362d29808
16 changed files with 417 additions and 117 deletions
-2
View File
@@ -926,8 +926,6 @@ class SithFile(models.Model):
super().clean()
if "/" in self.name:
raise ValidationError(_("Character '/' not authorized in name"))
if self == self.parent:
raise ValidationError(_("Loop in folder tree"), code="loop")
if self == self.parent or (
self.parent is not None and self in self.get_parent_list()
):