Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed typo in internal CharField method

  • Loading branch information...
commit 97a597132412b81298daab501498061e41c66cbe 1 parent 20da67d
@qris qris authored claudep committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/db/models/fields/__init__.py
View
4 django/db/models/fields/__init__.py
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.