diff options
| author | Aymeric Augustin <aymeric.augustin@oscaro.com> | 2014-06-06 00:29:24 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@oscaro.com> | 2014-06-06 00:31:22 +0200 |
| commit | c9aedce01ae54f26d612b070ded57d2cb3eb8483 (patch) | |
| tree | de7ec25573c082c9a253e93a11379fe8416988bc /django | |
| parent | 1238f92c649ccd4ba99da0ce70be7597c90515d4 (diff) | |
Replaced an explicit vendor check by a feature flag.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/__init__.py | 3 | ||||
| -rw-r--r-- | django/db/backends/sqlite3/base.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index e3f6266574..7ce72265d2 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -683,6 +683,9 @@ class BaseDatabaseFeatures(object): # Can the backend introspect an BooleanField, instead of an IntegerField? can_introspect_boolean_field = True + # Can the backend introspect an DecimalField, instead of an FloatField? + can_introspect_decimal_field = True + # Can the backend introspect an IPAddressField, instead of an CharField? can_introspect_ip_address_field = False diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 419b394429..e43ea328bf 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -105,6 +105,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): supports_foreign_keys = False supports_check_constraints = False autocommits_when_autocommit_is_off = True + can_introspect_decimal_field = False can_introspect_positive_integer_field = True can_introspect_small_integer_field = True supports_transactions = True |
