diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-09-09 14:39:09 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-09-09 18:26:29 +0200 |
| commit | 0cbb6ac00770d201b8f30a404d516b97fe41485d (patch) | |
| tree | 59d7c55f7808e1ba186f53fdf8008a5b7797dab2 /docs | |
| parent | ffbee67f8e17e1cfffcaa0116c170141a7363dda (diff) | |
Refs #24928 -- Added introspection support for PostgreSQL JSONField
Thanks Adam Johnson and Tim Graham for the reviews.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 4 | ||||
| -rw-r--r-- | docs/releases/2.0.txt | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 3a83bd2b7d..7c8ac29473 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -366,7 +366,9 @@ output: * If ``inspectdb`` cannot map a column's type to a model field type, it'll use ``TextField`` and will insert the Python comment ``'This field type is a guess.'`` next to the field in the generated - model. + model. The recognized fields may depend on apps listed in + :setting:`INSTALLED_APPS`. For example, :mod:`django.contrib.postgres` adds + recognition for several PostgreSQL-specific field types. * If the database column name is a Python reserved word (such as ``'pass'``, ``'class'`` or ``'for'``), ``inspectdb`` will append diff --git a/docs/releases/2.0.txt b/docs/releases/2.0.txt index 7b2df87fcf..46ff112dba 100644 --- a/docs/releases/2.0.txt +++ b/docs/releases/2.0.txt @@ -123,6 +123,9 @@ Minor features operation installs the ``btree_gist`` extension to add support for operator classes that aren't built-in. +* :djadmin:`inspectdb` can now introspect ``JSONField`` + (``django.contrib.postgres`` must be in ``INSTALLED_APPS``). + :mod:`django.contrib.redirects` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
