mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-16 22:20:24 +00:00
rename ctype to c_type (flake8 on python2.7)
This commit is contained in:
parent
cb91aabcf4
commit
92e7d52c47
1 changed files with 2 additions and 2 deletions
|
|
@ -407,8 +407,8 @@ def create_view_permissions(app, created_models, verbosity, **kwargs):
|
|||
|
||||
perms = [
|
||||
auth_models.Permission(codename=codename, name=name, content_type=ctype)
|
||||
for ctype, (codename, name) in searched_perms
|
||||
if (ctype.pk, codename) not in all_perms
|
||||
for c_type, (codename, name) in searched_perms
|
||||
if (c_type.pk, codename) not in all_perms
|
||||
]
|
||||
auth_models.Permission.objects.bulk_create(perms)
|
||||
if verbosity >= 2:
|
||||
|
|
|
|||
Loading…
Reference in a new issue