ruff rule FBT

This commit is contained in:
thomas girod committed 2024-07-08 15:37:09 +02:00
1 parent cfc19434d0
commit 171a1cb876
11 files changed
+26 -26

No files matched your search

+2 -2
View File
@@ -1055,13 +1055,13 @@ class SithFile(models.Model):
param="1",
).save()
def apply_rights_recursively(self, only_folders=False):
def apply_rights_recursively(self, *, only_folders=False):
children = self.children.all()
if only_folders:
children = children.filter(is_folder=True)
for c in children:
c.copy_rights()
c.apply_rights_recursively(only_folders)
c.apply_rights_recursively(only_folders=only_folders)
def copy_rights(self):
"""Copy, if possible, the rights of the parent folder"""