Skip to content

Commit

Permalink
Rename k to key.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Smits committed Dec 5, 2016
1 parent 209cbc7 commit d675816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lizard_auth_client/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def clean(self):
"""
cleaned_data = super(ManageUserBaseForm, self).clean()
user_role_codes = [
k[5:] for k in cleaned_data if
k.startswith('role_') and cleaned_data[k] is True]
key[5:] for key in cleaned_data if
key.startswith('role_') and cleaned_data[key] is True]
roles = Role.objects.filter(code__in=user_role_codes)
cleaned_data['roles'] = roles
return cleaned_data
Expand Down

0 comments on commit d675816

Please sign in to comment.