From 52e9c753659ffeab67149fcf26b95c10cf137c40 Mon Sep 17 00:00:00 2001 From: Gabriele Giaccari Date: Thu, 7 Feb 2019 22:25:15 +0100 Subject: [PATCH] Added PositiveIntegerField support to LayerMapping. --- django/contrib/gis/utils/layermapping.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/contrib/gis/utils/layermapping.py b/django/contrib/gis/utils/layermapping.py index dab5a22475..0d65d0fe40 100644 --- a/django/contrib/gis/utils/layermapping.py +++ b/django/contrib/gis/utils/layermapping.py @@ -76,6 +76,7 @@ class LayerMapping: models.UUIDField: OFTString, models.BigIntegerField: (OFTInteger, OFTReal, OFTString), models.SmallIntegerField: (OFTInteger, OFTReal, OFTString), + models.PositiveIntegerField: (OFTInteger, OFTReal, OFTString), models.PositiveSmallIntegerField: (OFTInteger, OFTReal, OFTString), }