fix another mapdata reading error

This commit is contained in:
Laura Klünder 2016-12-20 01:11:28 +01:00
parent 8ef9e417aa
commit 2a00e9ba0a

View file

@ -194,7 +194,7 @@ class AreaLocation(LocationModelMixin, GeometryMapItemWithLevel):
location_type = data['location_type']
if location_type not in dict(cls.LOCATION_TYPES):
raise ValueError('Invalid location type')
kwargs['location_tyoe'] = location_type
kwargs['location_type'] = location_type
if 'can_search' not in data:
raise ValueError('Missing can_search')