Skip to main content
https://travis-ci.org/tomi77/tastypie-sorl-thumbnail.svg?branch=master https://coveralls.io/repos/github/tomi77/tastypie-sorl-thumbnail/badge.svg?branch=master Code Climate

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()

Logging

Configure tastypie-sorl-thumbnail logger.

Testing

$ python setup.py test

or

$ python manage.py test tastypie_sorl_thumbnail

Metadata

Release files for django-tastypie-sorl-thumbnail 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tastypie-sorl-thumbnail 0.1.5
File Size Uploaded
django-tastypie-sorl-thumbnail-0.1.5.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-tastypie-sorl-thumbnail 0.1.5
File Interpreter ABI Platform
django_tastypie_sorl_thumbnail-0.1.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 7.5 kB

Release files / django-tastypie-sorl-thumbnail-0.1.5.tar.gz

Download URL django-tastypie-sorl-thumbnail-0.1.5.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a48f68018b318bf310a8c66a4e060601b3481fbe6769aa33b04903c2da7daeb7
BLAKE2b-256 checksum
How to use checksums
be5cc1be02504762d65b002666d8d4da1a2453515fcd3a02fd36f4ccf3b836bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_tastypie_sorl_thumbnail-0.1.5-py2.py3-none-any.whl

Download URL django_tastypie_sorl_thumbnail-0.1.5-py2.py3-none-any.whl
Size 4.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3bc2c5eebcea3aebb98ff3ffb6c5a8305c473bed0b876596c71b3d0991bdb4c3
BLAKE2b-256 checksum
How to use checksums
4f9c5f6270c0137469c5d10d9dc3d45ea47560c6510d9249fe5a3937681adbac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page