Fixed typo in internal CharField method
This commit is contained in:
parent
20da67d325
commit
97a5971324
|
@ -1007,10 +1007,10 @@ class CharField(Field):
|
||||||
|
|
||||||
def check(self, **kwargs):
|
def check(self, **kwargs):
|
||||||
errors = super(CharField, self).check(**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
|
return errors
|
||||||
|
|
||||||
def _check_max_length_attibute(self, **kwargs):
|
def _check_max_length_attribute(self, **kwargs):
|
||||||
try:
|
try:
|
||||||
max_length = int(self.max_length)
|
max_length = int(self.max_length)
|
||||||
if max_length <= 0:
|
if max_length <= 0:
|
||||||
|
|
Loading…
Reference in New Issue