blob: 75e9513fcaf8973bb5047d9f202ada221984bf19 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001from django.core.management.base import NoArgsCommand, CommandError
2from orm.models import LayerSource
3import os
4
5class Command(NoArgsCommand):
6 args = ""
7 help = "Updates locally cached information from all LayerSources"
8
9
10 def handle_noargs(self, **options):
11 for ls in LayerSource.objects.all():
12 ls.update()