Add index to search function

This commit is contained in:
Skia
2016-12-19 21:00:09 +01:00
parent 5b95299bde
commit e66b274f0e
3 changed files with 4 additions and 23 deletions

View File

@ -613,7 +613,6 @@ class SithFile(models.Model):
self.copy_rights()
def apply_rights_recursively(self, only_folders=False):
print(self)
children = self.children.all()
if only_folders:
children = children.filter(is_folder=True)