mysociety/yournextmp-popit — pull request #119 by mhl (2014-12-27 16:03:59+00:00)
Title: Improve postcode and constituency validation

The validation of constituency IDs and postcodes was hacky; hopefully this tidies
it up a bit, catches at least one case that was generating error emails and moves
validation into clean_ methods on the forms.

This also adds support for caching MapIt results using django's generic cache
mechanism, which means you can check the validity of a postcode in a form
validation method without having to make a duplicate request immediately
afterwards, and should reduce YourNextMP's load on MapIt more generally.