mirror of
https://github.com/Hopiu/django.git
synced 2026-05-19 13:01:06 +00:00
Fixed typo in internal CharField method
This commit is contained in:
parent
20da67d325
commit
97a5971324
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue