Skip to content

Commit

Permalink
Fixed typo in internal CharField method
Browse files Browse the repository at this point in the history
  • Loading branch information
qris authored and claudep committed Mar 4, 2014
1 parent 20da67d commit 97a5971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/db/models/fields/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,10 +1007,10 @@ def __init__(self, *args, **kwargs):

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:
Expand Down

0 comments on commit 97a5971

Please sign in to comment.