Ticket #7805: 7805-r7944.diff
File 7805-r7944.diff, 3.7 KB (added by , 16 years ago) |
---|
-
django/db/backends/mysql/creation.py
13 13 'FileField': 'varchar(%(max_length)s)', 14 14 'FilePathField': 'varchar(%(max_length)s)', 15 15 'FloatField': 'double precision', 16 'ImageField': 'varchar(%(max_length)s)',17 16 'IntegerField': 'integer', 18 17 'IPAddressField': 'char(15)', 19 18 'NullBooleanField': 'bool', -
django/db/backends/mysql_old/creation.py
13 13 'FileField': 'varchar(%(max_length)s)', 14 14 'FilePathField': 'varchar(%(max_length)s)', 15 15 'FloatField': 'double precision', 16 'ImageField': 'varchar(%(max_length)s)',17 16 'IntegerField': 'integer', 18 17 'IPAddressField': 'char(15)', 19 18 'NullBooleanField': 'bool', -
django/db/backends/oracle/creation.py
20 20 'FileField': 'NVARCHAR2(%(max_length)s)', 21 21 'FilePathField': 'NVARCHAR2(%(max_length)s)', 22 22 'FloatField': 'DOUBLE PRECISION', 23 'ImageField': 'NVARCHAR2(%(max_length)s)',24 23 'IntegerField': 'NUMBER(11)', 25 24 'IPAddressField': 'VARCHAR2(15)', 26 25 'NullBooleanField': 'NUMBER(1) CHECK ((%(qn_column)s IN (0,1)) OR (%(qn_column)s IS NULL))', -
django/db/backends/postgresql/creation.py
13 13 'FileField': 'varchar(%(max_length)s)', 14 14 'FilePathField': 'varchar(%(max_length)s)', 15 15 'FloatField': 'double precision', 16 'ImageField': 'varchar(%(max_length)s)',17 16 'IntegerField': 'integer', 18 17 'IPAddressField': 'inet', 19 18 'NullBooleanField': 'boolean', -
django/db/backends/sqlite3/creation.py
12 12 'FileField': 'varchar(%(max_length)s)', 13 13 'FilePathField': 'varchar(%(max_length)s)', 14 14 'FloatField': 'real', 15 'ImageField': 'varchar(%(max_length)s)',16 15 'IntegerField': 'integer', 17 16 'IPAddressField': 'char(15)', 18 17 'NullBooleanField': 'bool', -
django/db/models/fields/__init__.py
932 932 if not self.height_field: 933 933 setattr(cls, 'get_%s_height' % self.name, curry(cls._get_FIELD_height, field=self)) 934 934 935 def get_internal_type(self):936 return "ImageField"937 938 935 def save_file(self, new_data, new_object, original_object, change, rel, save=True): 939 936 FileField.save_file(self, new_data, new_object, original_object, change, rel, save) 940 937 # If the image has height and/or width field(s) and they haven't