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

Add a PersonExtra queryset method to find people with missing data #806

Closed mhl closed 8 years ago

mhl commented 8 years ago

e.g. you can find all those without a Twitter username with:

PersonExtra.objects.missing('twtiter_username')

... or those missing a date of birth with:

PersonExtra.objects.missing('birth_date')

Hopefully this will be useful for building task-focussed pages on YNR sites.

symroe commented 8 years ago

Excellent!

struan commented 8 years ago

Looks good to me