diff options
author | Nick Pope <nick.pope@flightdataservices.com> | 2019-07-26 22:05:22 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-08-02 11:39:01 +0200 |
commit | 194d1dfc186cc8d2b35dabf64f3ed38b757cbd98 (patch) | |
tree | 51ffabb34edc5b191ce8079c9149b77c88c2749e /django/db/backends/postgresql/introspection.py | |
parent | 955b382600e4626265cc20e5773bdbcfd01fc4af (diff) | |
download | django-194d1dfc186cc8d2b35dabf64f3ed38b757cbd98.tar.gz |
Fixed #30661 -- Added models.SmallAutoField.
Diffstat (limited to 'django/db/backends/postgresql/introspection.py')
-rw-r--r-- | django/db/backends/postgresql/introspection.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/introspection.py b/django/db/backends/postgresql/introspection.py index 1c9c7e63a5..b7bf18691c 100644 --- a/django/db/backends/postgresql/introspection.py +++ b/django/db/backends/postgresql/introspection.py @@ -37,6 +37,8 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): return 'AutoField' elif field_type == 'BigIntegerField': return 'BigAutoField' + elif field_type == 'SmallIntegerField': + return 'SmallAutoField' return field_type def get_table_list(self, cursor): |