def handle_label(self, label, **options):
     try:
         road = Road.objects.get(slug=label)
     except Road.DoesNotExist:
         return "Road %s not found.\n" % label
     else:
         return str(get_statuses(road))
 def handle_label(self, label, **options):
     try:
         road = Road.objects.get(slug=label)
     except Road.DoesNotExist:
         return "Road %s not found.\n" % label
     else:
         return str(get_statuses(road))
 def handle_noargs(self, **options):
     results = []
     for road in Road.objects.all():
         results.append(str(get_statuses(road)))
     return '\n'.join(results)
Beispiel #4
0
 def handle_noargs(self, **options):
     results = []
     for road in Road.objects.all():
         results.append(str(get_statuses(road)))
     return '\n'.join(results)