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