From 84226c0b848b39b30ba4781fedb0d87ef1d2f83f Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Wed, 30 Mar 2011 19:23:43 +0000 Subject: [PATCH] Fixed `LayerMapping` to support `BigIntegerField` and removed support for `XMLField`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15961 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/gis/utils/layermapping.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/django/contrib/gis/utils/layermapping.py b/django/contrib/gis/utils/layermapping.py index 0f3a72213d..a970b077c7 100644 --- a/django/contrib/gis/utils/layermapping.py +++ b/django/contrib/gis/utils/layermapping.py @@ -54,9 +54,7 @@ class LayerMapping(object): models.TextField : OFTString, models.URLField : OFTString, USStateField : OFTString, - # This is a reminder that XMLField is deprecated - # and this needs to be removed in 1.4 - models.XMLField : OFTString, + models.BigIntegerField : (OFTInteger, OFTReal, OFTString), models.SmallIntegerField : (OFTInteger, OFTReal, OFTString), models.PositiveSmallIntegerField : (OFTInteger, OFTReal, OFTString), }