django-sharing 0.0.2

Django row level object sharing app.

Django Sharing

Django row level sharing app limiting content access by user in Django admin.


  1. Provides admin view, change and delete permissions, restricting content access and limiting available actions per user.
  2. Filters ForeignKey fields by view permissions.
  3. Filters ManyToManyField fields by view permissions.
  4. Automatically enables sharing on all admin classes (optional).


  1. Install or add django-sharing to your python path.
  2. Add 'sharing' to the project's INSTALLED_APPS setting.
  3. Add 'sharing.backends.SharingBackend' to the project's AUTHENTICATION_BACKENDS setting.


In order for django-sharing to limit content access your various admin classes need to include the ShareAdminMixin class. For example:

from django.contrib import admin
from sharing.admin import ShareAdminMixin

class ArticleAdmin(ShareAdminMixin, admin.ModelAdmin):
    pass, ArticleAdmin)

It is crucial for ShareAdminMixin to be the first ancestor class in the admin class' definition.

Alternatively you can automatically enable sharing for all models registered with the admin site. django-sharing includes an admin_mixin_share method which will apply the ShareAdminMixin class to all models registered with the admin site. Call the method after admin.autodiscover() in

from django.conf.urls.defaults import *
from django.contrib import admin

import sharing


urlpatterns = patterns('',
    (r'^admin/', include(,

Once the ShareAdminMixin class has been applied your admin change views should include Group and User share inlines and restrict content appropriately.


Praekelt Foundation

  • Shaun Sephton



  1. Resolved class name issue on save_model.


  1. Initial release.


Praekelt Foundation




  • Framework :: Django
  • Intended Audience :: Developers
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Development Status :: 4 - Beta
  • License :: OSI Approved :: BSD License
  • Topic :: Internet :: WWW/HTTP :: Dynamic Content
File Type Python Version Uploaded On Downloads
django_sharing-0.0.2-py2.6.egg Egg 2.6 Sept. 30, 2010 2,525
django_sharing-0.0.2-py2.5.egg Egg 2.5 Sept. 30, 2010 2,545
django-sharing-0.0.2.tar.gz Source Sept. 30, 2010 2,625
Version Release Date
0.0.2 Sept. 30, 2010
0.0.1 Sept. 29, 2010
Date Package Version Action
Aug. 26, 2015, 12:25 a.m. django-sharing 0.0.2 Release Created
Aug. 26, 2015, 12:25 a.m. django-sharing 0.0.1 Release Created
Aug. 26, 2015, 12:25 a.m. django-sharing Package Created