Fixed typo in internal CharField method

This commit is contained in:
Chris Wilson 2014-03-04 20:32:21 +01:00 committed by Claude Paroz
parent 20da67d325
commit 97a5971324
1 changed files with 2 additions and 2 deletions

View File

@ -1007,10 +1007,10 @@ class CharField(Field):
def check(self, **kwargs):
errors = super(CharField, self).check(**kwargs)
errors.extend(self._check_max_length_attibute(**kwargs))
errors.extend(self._check_max_length_attribute(**kwargs))
return errors
def _check_max_length_attibute(self, **kwargs):
def _check_max_length_attribute(self, **kwargs):
try:
max_length = int(self.max_length)
if max_length <= 0: