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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ccbc0066a87d6580ed9377465e50f83b0fbde666d6e8a9490d7dceb0e5e6a7 |
|
MD5 | 5af416fefc3a0aadeeacf65ec8a55c8a |
|
BLAKE2b-256 | c454b0c97d2ccf221a869613191affbaf482b45430d2c59781bcc80cdbe0949a |
Close
Hashes for django_tastypie_sorl_thumbnail-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ac520b9d74e29dd1553fcad6a185c36fcd9d3f7a6b3d72674d19a8464e289fa |
|
MD5 | deaf675e8bac7b7d6a2c84ef10b4b554 |
|
BLAKE2b-256 | 388ddc58b5f838e09c0194c3613e855a5156759dd0db0029d4bf56f80586f7c0 |