carljm/django-model-utils — pull request #40 by nanonyme (2013-04-29 17:47:12+00:00)
Title: Implementing __contains__ in Choices

Currently '"foo" in choices' returns False even if 'getattr(choices, "foo")' is perfectly valid. Implement a __contains__ to make them work consistently