praekelt/vumi-go — pull request #891 by hodgestar (2014-03-04 15:13:49+00:00)
Title: Properly display errors when posting new channel forms

Currently we raise a ``ValueError`` and return a 500 response:

```python
Traceback (most recent call last):

File "/var/praekelt/vumi-go/ve/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/var/praekelt/vumi-go/ve/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view
return view_func(request, *args, **kwargs)

File "/var/praekelt/vumi-go/go/channel/views.py", line 89, in new_channel
raise ValueError(repr('Error: %s' % (form.errors,)))

ValueError: 'Error:

country

This field is required.

channel

This field is required.

'
```