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.
26 lines
1.1 KiB
26 lines
1.1 KiB
from django.core.management.base import BaseCommand
|
|
from photologue.models import PhotoSize
|
|
|
|
|
|
class Command(BaseCommand):
|
|
def handle(self, *args, **options):
|
|
|
|
PhotoSize.objects.create(name='admin_thumbnail',
|
|
width=100,
|
|
height=75,
|
|
crop=True,
|
|
pre_cache=True,
|
|
increment_count=False)
|
|
PhotoSize.objects.create(name='client_thumbnail',
|
|
width=256,
|
|
height=140,
|
|
crop=True,
|
|
pre_cache=True,
|
|
increment_count=False)
|
|
|
|
PhotoSize.objects.create(name='display',
|
|
width=730,
|
|
height=533,
|
|
crop=True,
|
|
pre_cache=True,
|
|
increment_count=True) |