1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Refs #24928 -- Added introspection support for PostgreSQL JSONField

Thanks Adam Johnson and Tim Graham for the reviews.
This commit is contained in:
Claude Paroz
2017-09-09 14:39:09 +02:00
parent ffbee67f8e
commit 0cbb6ac007
4 changed files with 38 additions and 3 deletions

View File

@@ -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