Closed tmtmtmtm closed 8 years ago
Really don't run the following in python manage.py shell
:
from pombola.core.models import Position
from pombola.core.models import Organisation
parliament = Organisation.objects.get(name='Parliament')
mps = Position.objects.filter(title__name__icontains='member of parliament').exclude(organisation__name='Parliament')
for mp in mps:
mp.organisation = parliament
mp.save()
The current examples of this problem have been fixed, and this check is now being done every night in kenya_check_for_recurring_problems
.
via