From 0bfca3d31c2cf7a20634e5b959d97b9219a12d1f Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 3 Mar 2010 15:17:58 +0000 Subject: [PATCH] Oops, use len() not .len() --- sso/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sso/forms.py b/sso/forms.py index e1710e4..9db2568 100644 --- a/sso/forms.py +++ b/sso/forms.py @@ -10,7 +10,7 @@ class EveAPIForm(forms.Form): description = forms.CharField(max_length=100) def clean(self): - if not self.cleaned_data['api_key'].len() == 64: + if not len(self.cleaned_data['api_key']) == 64: raise forms.ValidationError("API Key provided is invalid (Not 64 characters long)") try: