Source code for intranet.apps.bus.management.commands.reset_routes
from django.core.management.base import BaseCommand
from ...models import Route
[docs]class Command(BaseCommand):
help = "Reset all routes to on time"
[docs] def handle(self, *args, **options):
for route in Route.objects.all():
route.reset_status()