LocationForm is used to mock location. But it has no template backing it and cannot really have a template because it is displayed on all pages, not on one particular view. So on validation error redirect user where he came from and show him error message through Django messages instead.
How to make validation fail:
set location field to required,
mock location
disable mocking by selecting first element in list
LocationForm is used to mock location. But it has no template backing it and cannot really have a template because it is displayed on all pages, not on one particular view. So on validation error redirect user where he came from and show him error message through Django messages instead.
How to make validation fail: