This commit is contained in:
Jan Tuomi
2017-10-16 17:41:31 +03:00
parent b609fd3688
commit ce1cd1b890
+1 -1
View File
@@ -65,7 +65,7 @@ class KaehmyForm_Form(forms.ModelForm):
raise ValidationError(_('Custom role with the same name already exists.'))
def non_role_fields(self):
return [self.fields[k] for k in self.fields.keys() if not k in ["preset_roles", "custom_roles"]]
return [self.fields[k] for k in self.fields.keys() if k not in ["preset_roles", "custom_roles"]]
class KaehmyCommentForm(forms.ModelForm):