diff options
Diffstat (limited to 'chimere/main/widgets.py')
| -rw-r--r-- | chimere/main/widgets.py | 7 | 
1 files changed, 1 insertions, 6 deletions
| diff --git a/chimere/main/widgets.py b/chimere/main/widgets.py index 4ad6475..e3977a1 100644 --- a/chimere/main/widgets.py +++ b/chimere/main/widgets.py @@ -33,11 +33,6 @@ URL_OSM_CSS = ["http://www.openlayers.org/api/theme/default/style.css"]  URL_OSM_JS = ["http://www.openlayers.org/api/OpenLayers.js",            "http://www.openstreetmap.org/openlayers/OpenStreetMap.js"] -class ManyToManyField_NoSyncdb(models.ManyToManyField): -    def __init__(self, *args, **kwargs): -        super(ManyToManyField_NoSyncdb, self).__init__(*args, **kwargs) -        self.creates_table = False -  def getMapJS(area_name=''):      '''Variable initialization for drawing the map      ''' @@ -136,7 +131,7 @@ class PointField(models.PointField):          keys.update(defaults)          return super(PointField, self).formfield(**keys) -    def clean(self, value): +    def clean(self, value, instance=None):          if len(value) != 2 and self.required:              raise ValidationError(_("Invalid point"))          return value | 
