Commit 53882df3 by Paul Kilgo

fix instancing of Key in ApplicationKeyForm

parent b397c937
......@@ -42,8 +42,9 @@ class ApplicationKeyForm(forms.ModelForm):
)
def clean_key(self):
opts = self._meta
key = self.cleaned_data['key']
key = Key(key=key)
key = opts.model.base(key=key)
key.full_clean()
return key
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment