Changes between Initial Version and Version 1 of Ticket #26105, comment 1


Ignore:
Timestamp:
Jan 20, 2016, 9:11:39 AM (9 years ago)
Author:
Sven R. Kunze

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26105, comment 1

    initial v1  
    99
    1010
    11 perms = [
    12     Permission(codename=codename, name=name, content_type=ct)
     11perms =[
     12    Permission(codename=codename, name=name, content_type=ContentType.objects.get(app_label=ct.app_label, model=ct.model))
    1313    for ct, (codename, name) in searched_perms
    1414    if (ct.app_label, ct.model, codename) not in all_perms
Back to Top