Closed tmtmtmtm closed 8 years ago
It looks it it'd be better to fix all of these to be Educational, and then manually tidy up anything that looks odd.
Run the following commands in python manage.py shell
:
from pombola.core.models import Organisation
from pombola.core.models import OrganisationKind
edu_org_kind = OrganisationKind.objects.get(slug='educational-institution')
orgs = Organisation.objects.filter(kind__slug='political-institution').filter(position__category='education').distinct()
for org in orgs:
org.kind = edu_org_kind
org.save()
# Check that there are now no organisations with kind Unknown and
# a position with category 'education'
Organisation.objects.filter(kind__slug='political-institution').filter(position__category='education').distinct().count()
Commands now done on staging and live.
Most of the following organisations should presumably be marked as being of kind 'Educational Institution'. Some of the other memberships are simply mis-set:
via