mirror of
https://github.com/nikdoof/test-auth.git
synced 2026-01-31 08:28: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)
|
description = forms.CharField(max_length=100)
|
||||||
|
|
||||||
def clean(self):
|
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)")
|
raise forms.ValidationError("API Key provided is invalid (Not 64 characters long)")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user