summaryrefslogtreecommitdiff
path: root/django/db/models/fields/__init__.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-18 07:25:30 -0400
committerTim Graham <timograham@gmail.com>2013-11-02 15:24:56 -0400
commit36ded01527b690b5df0574492af9cfcc2ea3d1dc (patch)
tree107e2f542034f13810496fd389972f856efc33f3 /django/db/models/fields/__init__.py
parent9f76ea1eaad0db0183fa3b5bade16392db0cafbd (diff)
Fixed #21302 -- Fixed unused imports and import *.
Diffstat (limited to 'django/db/models/fields/__init__.py')
-rw-r--r--django/db/models/fields/__init__.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index 8fe1c9e4e4..022de52134 100644
--- a/django/db/models/fields/__init__.py
+++ b/django/db/models/fields/__init__.py
@@ -25,6 +25,18 @@ from django.utils.encoding import smart_text, force_text, force_bytes
from django.utils.ipv6 import clean_ipv6_address
from django.utils import six
+# Avoid "TypeError: Item in ``from list'' not a string" -- unicode_literals
+# makes these strings unicode
+__all__ = [str(x) for x in (
+ 'AutoField', 'BLANK_CHOICE_DASH', 'BigIntegerField', 'BinaryField',
+ 'BooleanField', 'CharField', 'CommaSeparatedIntegerField', 'DateField',
+ 'DateTimeField', 'DecimalField', 'EmailField', 'Empty', 'Field',
+ 'FieldDoesNotExist', 'FilePathField', 'FloatField',
+ 'GenericIPAddressField', 'IPAddressField', 'IntegerField', 'NOT_PROVIDED',
+ 'NullBooleanField', 'PositiveIntegerField', 'PositiveSmallIntegerField',
+ 'SlugField', 'SmallIntegerField', 'TextField', 'TimeField', 'URLField',
+)]
+
class Empty(object):
pass