Changes between Version 1 and Version 2 of Ticket #26105, comment 1
- Timestamp:
- Jan 20, 2016, 9:55:26 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26105, comment 1
v1 v2 1 A quick fix we found could be (line 90 to line 100):2 3 {{{4 all_perms=set(Permission.objects.using(using).filter(5 content_type__in=ctypes,6 ).values_list(7 "content_type__app_label", "content_type__model", "codename"8 ))9 10 11 perms =[12 Permission(codename=codename, name=name, content_type=ContentType.objects.get(app_label=ct.app_label, model=ct.model))13 for ct, (codename, name) in searched_perms14 if (ct.app_label, ct.model, codename) not in all_perms15 ]16 }}}