Commits

volpino committed 3acbb95

fixing multiple removing errors

Comments (0)

Files changed (1)

admin_tools/utils.py

         for item in included:
             model, perms = item
             if fnmatch(full_name(model), pattern):
-                result.remove(item)
+                try:
+                    result.remove(item)
+                except ValueError:  # if the item was already removed skip
+                    pass
     return result