summaryrefslogtreecommitdiff
path: root/django/db/models/fields/__init__.py
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@memset.com>2013-10-17 23:27:45 +0100
committerTim Graham <timograham@gmail.com>2013-10-17 20:20:11 -0400
commitdfb4cb9970f86487f0aaa88c5dfcfafa31e4f430 (patch)
tree4762099924f11873e9b6608e6f056939f16410b9 /django/db/models/fields/__init__.py
parentd97bec5ee3a6284d30b613c9070588a60358e7ec (diff)
Fixed #21285 -- Fixed E121,E122 pep8 warnings
Diffstat (limited to 'django/db/models/fields/__init__.py')
-rw-r--r--django/db/models/fields/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index 019714af6e..8fe1c9e4e4 100644
--- a/django/db/models/fields/__init__.py
+++ b/django/db/models/fields/__init__.py
@@ -704,7 +704,7 @@ class AutoField(Field):
def __init__(self, *args, **kwargs):
assert kwargs.get('primary_key', False) is True, \
- "%ss must have primary_key=True." % self.__class__.__name__
+ "%ss must have primary_key=True." % self.__class__.__name__
kwargs['blank'] = True
Field.__init__(self, *args, **kwargs)
@@ -746,7 +746,7 @@ class AutoField(Field):
def contribute_to_class(self, cls, name):
assert not cls._meta.has_auto_field, \
- "A model can't have more than one AutoField."
+ "A model can't have more than one AutoField."
super(AutoField, self).contribute_to_class(cls, name)
cls._meta.has_auto_field = True
cls._meta.auto_field = self