Mercurial > public > madeira
annotate photologue/management/commands/plcreatesize.py @ 163:7fc4123fef70
Stop passing callable to queryset.
This is now deprecated. The usage here was most likely a mistake that has
worked all these years. This change was for upgrading to Django 1.7.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 02 Apr 2015 19:17:47 -0500 |
parents | e2868ad47a1e |
children |
rev | line source |
---|---|
bgneal@1 | 1 from django.core.management.base import BaseCommand, CommandError |
bgneal@1 | 2 from photologue.management.commands import create_photosize |
bgneal@1 | 3 |
bgneal@1 | 4 class Command(BaseCommand): |
bgneal@1 | 5 help = ('Creates a new Photologue photo size interactively.') |
bgneal@1 | 6 requires_model_validation = True |
bgneal@1 | 7 can_import_settings = True |
bgneal@1 | 8 |
bgneal@1 | 9 def handle(self, *args, **options): |
bgneal@1 | 10 create_size(args[0]) |
bgneal@1 | 11 |
bgneal@1 | 12 def create_size(size): |
bgneal@1 | 13 create_photosize(size) |