sorl-thumbnail support for a Django Tastypie
Project description
Add a sorl-thumbnail support for a Django Tastypie.
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6648ca2be3074adbbb18de75fcaa1ca860045c01ded24ac1ba2e5ff4565dd60d |
|
MD5 | 37d063f0379a36905d0ced74cefd4714 |
|
BLAKE2b-256 | bfdff1b79859c9ad8b6ca7615c281987206eacf52e42e13ed642ac1f48b686de |
Close
Hashes for django_tastypie_sorl_thumbnail-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed49659ab59d933ce16ca44fb039530548d048e772717992ff4ad661951f1c1 |
|
MD5 | 94bebcdb2700462619efcdb4872cac12 |
|
BLAKE2b-256 | 65250c0e363574ef934353ef9d3bcae420c673789eb32179ef9dfdf351dcaa37 |