team-3/src/c3nav/mapdata/management/commands/clearmapcache.py

10 lines
263 B
Python
Raw Normal View History

2017-07-05 22:42:50 +02:00
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'clear the mapdata cache'
def handle(self, *args, **options):
from c3nav.mapdata.models import MapUpdate
MapUpdate.objects.create(type='management')