Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | from django.core.management.base import NoArgsCommand, CommandError |
2 | from orm.models import LayerSource | ||||
3 | import os | ||||
4 | |||||
5 | class 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() |