mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Oops, use len(<v>) not .len()
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user