Commit a788aa4f authored by Maréchal | Thomas's avatar Maréchal | Thomas
Browse files

Update core/models.py

parent fdc4dd1c
Pipeline #2641 failed with stage
in 24 minutes and 19 seconds
......@@ -962,7 +962,7 @@ class SithFile(models.Model):
param="1",
).save()
def direct_children(self, only_folders=False) -> models.QuerySet['SithFile']:
def direct_children(self, only_folders = False) -> models.QuerySet['SithFile']:
"""
Return the direct children of this SithFile object
"""
......@@ -971,7 +971,7 @@ class SithFile(models.Model):
children = children.filter(is_folder=True)
return children
def apply_rights_recursively(self, only_folders=False) -> None:
def apply_rights_recursively(self, only_folders = False) -> None:
"""
Apply to all descendants of this SithFile element the same rights.
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment