RBAC copy/edit displays test refactor

This commit is contained in:
AlanCoding
2016-09-07 17:08:07 -04:00
parent 1ca7ce1bd4
commit 9da00c2d38
8 changed files with 278 additions and 186 deletions

View File

@@ -415,7 +415,6 @@ def cache_list_capabilities(page, role_types, model, user):
are save on each object in the list, using 1 query for each role type
'''
page_ids = [obj.id for obj in page]
id_lists = {}
for obj in page:
obj.capabilities_cache = {}