kopia lustrzana https://github.com/hholzgra/maposmatic/
Improve error message
rodzic
1bc8ab5703
commit
9150cf23d1
|
@ -51,7 +51,7 @@ class MapRenderingJobForm(ModelForm):
|
||||||
self._errors["administrative_city"] = ErrorList([msg])
|
self._errors["administrative_city"] = ErrorList([msg])
|
||||||
del cleaned_data["administrative_city"]
|
del cleaned_data["administrative_city"]
|
||||||
elif not city_exists(city):
|
elif not city_exists(city):
|
||||||
msg = u"City doesn't exist. Try with proper casing."
|
msg = u"No administrative boundaries found for this city. Try with proper casing."
|
||||||
self._errors["administrative_city"] = ErrorList([msg])
|
self._errors["administrative_city"] = ErrorList([msg])
|
||||||
del cleaned_data["administrative_city"]
|
del cleaned_data["administrative_city"]
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue