view photologue/management/commands/plcreatesize.py @ 84:8b35fe2667d6

Add band bio at the top of the bio page.
author Brian Neal <bgneal@gmail.com>
date Sun, 03 Mar 2013 11:48:19 -0600
parents e2868ad47a1e
children
line wrap: on
line source
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)