mysociety / yournextrepresentative

A website for crowd-sourcing structured election candidate data
https://candidates.democracyclub.org.uk/
GNU Affero General Public License v3.0
56 stars 21 forks source link

Strip leading and trailing whitespace in submitted candidate data #800

Closed wfdd closed 8 years ago

wfdd commented 8 years ago

This introduces a new class, StrippedCharField, which inherits from CharField and backports its Django 1.9 strip argument (see django/django@11cac1b). It replaces all uses of CharField in candidate forms with StrippedCharField.

Closes #333.

struan commented 8 years ago

Looks good to me