from agenda_culturel.models import Message def run(): Message.objects.all().update(spam=True)