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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f3fdb6e85220a51c8a8b277282207c9876bc894a3e9d746cb7cdb9bd4d38637 |
|
MD5 | 075665874559b130b45fc69b2c970ac9 |
|
BLAKE2b-256 | 4d6f1d39a2abd0e015569c0b00b1f07379410d9260e825e645681a0ec6e0a41f |
Close
Hashes for django_tastypie_sorl_thumbnail-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eca237243b2e5fc4eaf9c2999c917d9a309c3247deb7899850c74db23a9920a7 |
|
MD5 | 0e23c0aeaa7d3313b4c887e6d2eff54c |
|
BLAKE2b-256 | 5ae2ea9c5bc20223b5caedbde80b415bd6a6a7ad3271ed12014e8806023d605c |