update.py 268 Bytes
Newer Older
Dudás Ádám committed
1 2 3 4 5 6 7 8 9 10
from django.core.management.base import BaseCommand, CommandError
from one.models import *

class Command(BaseCommand):
    args = None
    help = 'Update status of One resources'

    def handle(self, *args, **options):
        Disk.update()
        Network.update()