sorl-thumbnail support for Django Tastypie
Project description
Installation
Install package via pip
pip install django-tastypie-sorl-thumbnail
Usage
from tastypie.authentication import Authentication from tastypie.authorization import Authorization from tastypie.resources import ModelResource from tastypie_sorl_thumbnail.fields import ThumbnailField from .models import Photo class PhotoResource(ModelResource): thumbnail = ThumbnailField('photo', '120', quality=80) class Meta(object): queryset = Photo.objects.all() resource_name = 'photo' authentication = Authentication() authorization = Authorization()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-tastypie-sorl-thumbnail-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4b6b95580523a4a367c52e87b33d709994d7bb478b3ffa94bcf4469b32b3941 |
|
MD5 | 69696216c0ad0d5361cec01cb763f522 |
|
BLAKE2b-256 | 28060d9cd3874b7f30f7385329905f7319eaf02d826a74afae407c3249c5af58 |
Close
Hashes for django_tastypie_sorl_thumbnail-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14586cdc9a71ce41527e14d35ab4556204e94cc29d5b315d9ac1c147a8ab7d14 |
|
MD5 | 12250ddc4f8d284b8c14ccafee493cbb |
|
BLAKE2b-256 | 58fc4d015b9300f5c9c5bf09fb26f652421e89daf7b3839a824f31a0d033412f |