This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

django-pieguard is a simple authorization class for tastypie that uses django-guardian to handle object permissions.

This was inspired by gist


Not tested in other versions yet.


Install django-pieguard:

pip install django-pieguard

Then use it in a tastypie project:

from pieguard.authorization import GuardianAuthorization
from tastypie.resources import Resource
from django.db import models

class MyModel(models.Model):
    class Meta:
        permissions = (
            ('view_mymodel', 'View my model'),

class MyResource(ModelResource):
    class Meta:
        authorization = GuardianAuthorization
        # ... your other options

Notes on permissions

django-pieguard uses a special view_modelname permission to control if user can view that resource or not. As Django only creates add, change and delete permissions by default, you need to add the relevant permission on your model Meta class.


  • Tests
  • Docs
  • Python 3 official support


This work is licensed under MIT license.


0.0.1 (2014-11-29)

  • First release on PyPI.
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting