You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
398 B
15 lines
398 B
from django.core.management.base import BaseCommand
|
|
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)
|
|
|