summaryrefslogtreecommitdiff
path: root/chimere/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-10-06 01:10:28 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-10-06 01:10:28 +0200
commit3d8d2da5141336829cf1cfe0579cdcdcf8b63e03 (patch)
tree543c35f54a351b4342aef65fcb4998c17f2cc0a4 /chimere/models.py
parent0bec9d3b303212d9a6c66117e759999cd7443146 (diff)
downloadChimère-3d8d2da5141336829cf1cfe0579cdcdcf8b63e03.tar.bz2
Chimère-3d8d2da5141336829cf1cfe0579cdcdcf8b63e03.zip
Import: add GeoRSS import
Diffstat (limited to 'chimere/models.py')
-rw-r--r--chimere/models.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/chimere/models.py b/chimere/models.py
index ee2d43e..56f4055 100644
--- a/chimere/models.py
+++ b/chimere/models.py
@@ -41,7 +41,8 @@ from django.utils.translation import ugettext_lazy as _
from chimere.widgets import PointField, RouteField, SelectMultipleField, \
TextareaWidget, DatePickerWidget
from chimere.managers import BaseGeoManager
-from chimere.utils import KMLManager, OSMManager, ShapefileManager
+from chimere.utils import KMLManager, OSMManager, ShapefileManager, \
+ GeoRSSManager
class News(models.Model):
"""News of the site
@@ -204,12 +205,14 @@ class SubCategory(models.Model):
IMPORTERS = {'KML':KMLManager,
'OSM':OSMManager,
- 'SHP':ShapefileManager
+ 'SHP':ShapefileManager,
+ 'RSS':GeoRSSManager
}
IMPORTER_CHOICES = (('KML', 'KML'),
('OSM', 'OSM'),
('SHP', 'Shapefile'),
+ ('RSS', 'GeoRSS')
)
IMPORTER_CHOICES_DICT = dict(IMPORTER_CHOICES)