Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


What is it?

django-permissions provides per-object permissions for Django on roles:


The code can be found on bitbucket:


If you want to see a comprehensive implementation of django-permissions take a look at the CMS LFC


1.0.3 (2011-04-30)

Bugfix release

  • Bugfix: Removed mutuable parameters; issue #11


1.0.2 (2011-04-09)

Bugfix release

  • Bugfix: prevent to add same Users several times to a Role; issue #6 of django-workflows
  • Updated Development Status to "5 - Production/Stable"

1.0.1 (2011-04-08)

Bugfix release

  • Bugfix: DatabaseErrors with Postgres; issue #5.
  • Bugfix: changed order of passed parameters to has_permission; issue #6
  • Bugfix: removed not needed import of "sets"; issue #8

1.0 (2010-08-24)

  • First final release

1.0 beta 4 (2010-07-23)

  • Added check_permission method to PermissionBase
  • Added Unauthorized exception

1.0 beta 3 (2010-07-07)

  • Bugfix get_users/get_groups method of class Role; issue #2
  • Bugfix: check for an object before trying to add local role; issue #3
  • Bugfix: registration of permissions for specific content types only

1.0 beta 2 (2010-05-17)

  • Added license

1.0 beta 1 (2010-05-17)

  • Bugfix has_permission. Using roles=None instead of roles=[].

1.0 alpha 4 (2010-04-16)

  • Moved PermissionBase to

1.0 alpha 3 (2010-03-30)

  • Added roles

1.0 alpha 2 (2010-03-22)

  • Added a lot of improvements on several places

1.0 alpha 1 (2010-03-11)

  • Initial public release

Recent activity

Beau Breon

Beau Breon created pull request #1 for diefenbach/django-permissions-1.0

ifhasperm template tag is no longer dependant on request object in template context (which is not present by default.) However it is now dependant on user object being in the context (which it is by default.)

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.