diff options
| author | Aymeric Augustin <aymeric.augustin@oscaro.com> | 2014-06-05 17:56:56 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@oscaro.com> | 2014-06-05 17:56:56 +0200 |
| commit | a03d38ddd43957a402b64caddf74a73df72140fb (patch) | |
| tree | d4d22847367efb130ee95179b45c5c3dc4ecfdd8 /django/db/backends/__init__.py | |
| parent | 237c229b91ae852ac5f4f0a52b37de3e243ee61f (diff) | |
Added a flag for the ability to introspect nullable fields.
Previously this was conflated with another Oracle-specific behavior.
Diffstat (limited to 'django/db/backends/__init__.py')
| -rw-r--r-- | django/db/backends/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 3868b41e0d..c3ad179c7a 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -571,6 +571,9 @@ class BaseDatabaseFeatures(object): # Can the backend determine reliably the length of a CharField? can_introspect_max_length = True + # Can the backend determine reliably if a field is nullable? + can_introspect_null = True + # Confirm support for introspected foreign keys # Every database can do this reliably, except MySQL, # which can't do it for MyISAM tables |
