Make Enumeration.from_{value,slug} raise an exception when value is bogus
Make Enumeration.from_{value,slug} raise an exception when value is bogus

Previously we had to check for 'None' which is a bit too C-like - the most
common case was that we expected the value to exist anyway and we can
always catch the ensuing exception in the case that we want to do something
else.

Signed-off-by: Chris Lamb <711c73f64afdce07b7e38039a96d2224209e9a6c@playfire.com>

playfire/django-enumfield