Author: adrian
Date: 2008-07-17 23:34:47 -0500 (Thu, 17 Jul 2008)
New Revision: 7947
Modified:
django/trunk/django/db/backends/mysql/creation.py
django/trunk/django/db/backends/mysql_old/creation.py
django/trunk/django/db/backends/oracle/creation.py
django/trunk/django/db/backends/postgresql/creation.py
django/trunk/django/db/backends/sqlite3/creation.py
django/trunk/django/db/models/fields/__init__.py
Log:
Fixed #7805 -- Removed ImageField.get_internal_type() because it doesn't offer
anything beyond FileField's implementation. Thanks, Gulopine
Modified: django/trunk/django/db/backends/mysql/creation.py
===================================================================
--- django/trunk/django/db/backends/mysql/creation.py 2008-07-18 03:47:27 UTC
(rev 7946)
+++ django/trunk/django/db/backends/mysql/creation.py 2008-07-18 04:34:47 UTC
(rev 7947)
@@ -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',
Modified: django/trunk/django/db/backends/mysql_old/creation.py
===================================================================
--- django/trunk/django/db/backends/mysql_old/creation.py 2008-07-18
03:47:27 UTC (rev 7946)
+++ django/trunk/django/db/backends/mysql_old/creation.py 2008-07-18
04:34:47 UTC (rev 7947)
@@ -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',
Modified: django/trunk/django/db/backends/oracle/creation.py
===================================================================
--- django/trunk/django/db/backends/oracle/creation.py 2008-07-18 03:47:27 UTC
(rev 7946)
+++ django/trunk/django/db/backends/oracle/creation.py 2008-07-18 04:34:47 UTC
(rev 7947)
@@ -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))',
Modified: django/trunk/django/db/backends/postgresql/creation.py
===================================================================
--- django/trunk/django/db/backends/postgresql/creation.py 2008-07-18
03:47:27 UTC (rev 7946)
+++ django/trunk/django/db/backends/postgresql/creation.py 2008-07-18
04:34:47 UTC (rev 7947)
@@ -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',
Modified: django/trunk/django/db/backends/sqlite3/creation.py
===================================================================
--- django/trunk/django/db/backends/sqlite3/creation.py 2008-07-18 03:47:27 UTC
(rev 7946)
+++ django/trunk/django/db/backends/sqlite3/creation.py 2008-07-18 04:34:47 UTC
(rev 7947)
@@ -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',
Modified: django/trunk/django/db/models/fields/__init__.py
===================================================================
--- django/trunk/django/db/models/fields/__init__.py 2008-07-18 03:47:27 UTC
(rev 7946)
+++ django/trunk/django/db/models/fields/__init__.py 2008-07-18 04:34:47 UTC
(rev 7947)
@@ -942,9 +942,6 @@
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---