Mercurial > public > madeira
view photologue/management/commands/plcreatesize.py @ 161:e73a108189fe
Turn of warning about test runner behavior change.
Change for Django 1.7 upgrade.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 02 Apr 2015 18:57:16 -0500 |
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)