fix another mapdata reading error
This commit is contained in:
parent
8ef9e417aa
commit
2a00e9ba0a
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class AreaLocation(LocationModelMixin, GeometryMapItemWithLevel):
|
||||||
location_type = data['location_type']
|
location_type = data['location_type']
|
||||||
if location_type not in dict(cls.LOCATION_TYPES):
|
if location_type not in dict(cls.LOCATION_TYPES):
|
||||||
raise ValueError('Invalid location type')
|
raise ValueError('Invalid location type')
|
||||||
kwargs['location_tyoe'] = location_type
|
kwargs['location_type'] = location_type
|
||||||
|
|
||||||
if 'can_search' not in data:
|
if 'can_search' not in data:
|
||||||
raise ValueError('Missing can_search')
|
raise ValueError('Missing can_search')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue