blob: 75e9513fcaf8973bb5047d9f202ada221984bf19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from django.core.management.base import NoArgsCommand, CommandError
from orm.models import LayerSource
import os
class Command(NoArgsCommand):
args = ""
help = "Updates locally cached information from all LayerSources"
def handle_noargs(self, **options):
for ls in LayerSource.objects.all():
ls.update()
|