1
# Copyright 2012 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
"""Custom django command: garabge-collect."""
6
from __future__ import (
17
from django.core.management.base import BaseCommand
18
from maasserver.models import FileStorage
21
class Command(BaseCommand):
22
def handle(self, *args, **options):
23
FileStorage.objects.collect_garbage()