Skip to content

Commit

Permalink
Fixed #7805 -- Removed ImageField.get_internal_type() because it does…
Browse files Browse the repository at this point in the history
…n't offer anything beyond FileField's implementation. Thanks, Gulopine

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7947 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jul 18, 2008
1 parent df2b19c commit d261c1d
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion django/db/backends/mysql/creation.py
Expand Up @@ -13,7 +13,6 @@
'FileField': 'varchar(%(max_length)s)',
'FilePathField': 'varchar(%(max_length)s)',
'FloatField': 'double precision',
'ImageField': 'varchar(%(max_length)s)',
'IntegerField': 'integer',
'IPAddressField': 'char(15)',
'NullBooleanField': 'bool',
Expand Down
1 change: 0 additions & 1 deletion django/db/backends/mysql_old/creation.py
Expand Up @@ -13,7 +13,6 @@
'FileField': 'varchar(%(max_length)s)',
'FilePathField': 'varchar(%(max_length)s)',
'FloatField': 'double precision',
'ImageField': 'varchar(%(max_length)s)',
'IntegerField': 'integer',
'IPAddressField': 'char(15)',
'NullBooleanField': 'bool',
Expand Down
1 change: 0 additions & 1 deletion django/db/backends/oracle/creation.py
Expand Up @@ -20,7 +20,6 @@
'FileField': 'NVARCHAR2(%(max_length)s)',
'FilePathField': 'NVARCHAR2(%(max_length)s)',
'FloatField': 'DOUBLE PRECISION',
'ImageField': 'NVARCHAR2(%(max_length)s)',
'IntegerField': 'NUMBER(11)',
'IPAddressField': 'VARCHAR2(15)',
'NullBooleanField': 'NUMBER(1) CHECK ((%(qn_column)s IN (0,1)) OR (%(qn_column)s IS NULL))',
Expand Down
1 change: 0 additions & 1 deletion django/db/backends/postgresql/creation.py
Expand Up @@ -13,7 +13,6 @@
'FileField': 'varchar(%(max_length)s)',
'FilePathField': 'varchar(%(max_length)s)',
'FloatField': 'double precision',
'ImageField': 'varchar(%(max_length)s)',
'IntegerField': 'integer',
'IPAddressField': 'inet',
'NullBooleanField': 'boolean',
Expand Down
1 change: 0 additions & 1 deletion django/db/backends/sqlite3/creation.py
Expand Up @@ -12,7 +12,6 @@
'FileField': 'varchar(%(max_length)s)',
'FilePathField': 'varchar(%(max_length)s)',
'FloatField': 'real',
'ImageField': 'varchar(%(max_length)s)',
'IntegerField': 'integer',
'IPAddressField': 'char(15)',
'NullBooleanField': 'bool',
Expand Down
3 changes: 0 additions & 3 deletions django/db/models/fields/__init__.py
Expand Up @@ -942,9 +942,6 @@ def contribute_to_class(self, cls, name):
if not self.height_field:
setattr(cls, 'get_%s_height' % self.name, curry(cls._get_FIELD_height, field=self))

def get_internal_type(self):
return "ImageField"

def save_file(self, new_data, new_object, original_object, change, rel, save=True):
FileField.save_file(self, new_data, new_object, original_object, change, rel, save)
# If the image has height and/or width field(s) and they haven't
Expand Down

0 comments on commit d261c1d

Please sign in to comment.