| author | ymh <ymh.work@gmail.com> |
| Thu, 21 Jan 2010 18:41:10 +0100 | |
| changeset 5 | 10b1f6d8a5d2 |
| permissions | -rw-r--r-- |
from django.core.management.base import BaseCommand, CommandError from photologue.management.commands import create_photosize class Command(BaseCommand): help = ('Creates a new Photologue photo size interactively.') requires_model_validation = True can_import_settings = True def handle(self, *args, **options): create_size(args[0]) def create_size(size): create_photosize(size)