diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-11-18 05:48:24 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-11-18 05:48:24 +0000 |
| commit | 3d07f94d68ae7ef69c336c36ee119ef49c1e6028 (patch) | |
| tree | 5ddb605fbe53758ed57b876d73791691d8ebf7c6 /django/db/models/fields/__init__.py | |
| parent | 44df4e390fc9e037a3ab2775ffd695c80831f0ee (diff) | |
queryset-refactor: Merged from trunk up to [6689].
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/fields/__init__.py')
| -rw-r--r-- | django/db/models/fields/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index e7c08d947e..af122b33d9 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -154,6 +154,8 @@ class Field(object): # exactly which wacky database column type you want to use. data_types = get_creation_module().DATA_TYPES internal_type = self.get_internal_type() + if internal_type not in data_types: + return None return data_types[internal_type] % self.__dict__ def validate_full(self, field_data, all_data): |
