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

maintain the list of candidates whose profiles are liable to vandalism in the database #996

Open mhl opened 7 years ago

mhl commented 7 years ago

The feed of changes that might need special attention at /feeds/needs-review.xml includes any edits to candidate profiles where the candidate has been marked as particularly liable to vandalism. At the moment this list of candidates is stored as a Django setting, which means that it can only be changed by developers, and requires a redeploy to take effect. For example, this setting (PEOPLE_LIABLE_TO_VANDALISM) is set for the UK here:

https://github.com/mysociety/yournextrepresentative/blob/5a057d6320552d6ac8056b4653f5f88228624228/elections/uk/settings.py#L8-L75

Instead, this data should be maintained in the database, and changes to it should be made via the site.