django-guardian 1.0.4 documentation

This Page

Changelog

Release 1.0.4 (Jul 15, 2012)

  • Added GUARDIAN_RENDER_403 and GUARDIAN_RAISE_403 settings (#40)
  • Updated docstring for get_obj_perms (#43)
  • Updated codes to run with newest django-grappelli (#51)
  • Fixed problem with building a RPM package (#50)
  • Updated caveats docs related with oprhaned object permissions (#47)
  • Updated permission_required docstring (#49)
  • Added accept_global_perms for decorators (#49)
  • Fixed problem with MySQL and booleans (#56)
  • Added flag to check for any permission in get_objects_for_user and get_objects_for_group (#65)
  • Added missing tag closing at template (#63)
  • Added view mixins related with authorization and authentication (#73)
  • Added tox support
  • Added Travis support

Release 1.0.3 (Jul 25, 2011)

  • Added get_objects_for_group shortcut (thanks to Rafael Ponieman)
  • Added user_can_access_owned_objects_only flag to GuardedModelAdmin
  • Updated and fixed issues with example app (thanks to Bojan Mihelac)
  • Minor typo fixed at documentation
  • Included ADC theme for documentation

Release 1.0.2 (Apr 12, 2011)

  • get_users_with_perms now accepts with_group_users flag
  • Fixed group_id issue at admin templates
  • Small fix for documentation building process
  • It’s 2011 (updated dates within this file)

Release 1.0.1 (Mar 25, 2011)

  • get_users_with_perms now accepts with_superusers flag
  • Small fix for documentation building process

Release 1.0.0 (Jan 27, 2011)

  • A final v1.0 release!

Release 1.0.0.beta2 (Jan 14, 2011)

  • Added get_objects_for_user shortcut function
  • Added few tests
  • Fixed issues related with django.contrib.auth tests
  • Removed example project from source distribution

Release 1.0.0.beta1 (Jan 11, 2011)

  • Simplified example project
  • Fixed issues related with test suite
  • Added ability to clear orphaned object permissions
  • Added clean_orphan_obj_perms management command
  • Documentation cleanup
  • Added grappelli admin templates

Release 1.0.0.alpha2 (Dec 2, 2010)

  • Added possibility to operate with global permissions for assign and remove_perm shortcut functions
  • Added possibility to generate PDF documentation
  • Fixed some tests

Release 1.0.0.alpha1 (Nov 23, 2010)

  • Fixed admin templates not included in MANIFEST.in
  • Fixed admin integration codes

Release 1.0.0.pre (Nov 23, 2010)

  • Added admin integration
  • Added reusable forms for object permissions management

Release 0.2.3 (Nov 17, 2010)

  • Added guardian.shortcuts.get_users_with_perms function
  • Added AUTHORS file

Release 0.2.2 (Oct 19, 2010)

  • Fixed migrations order (thanks to Daniel Rech)

Release 0.2.1 (Oct 3, 2010)

  • Fixed migration (it wasn’t actually updating object_pk field)

Release 0.2.0 (Oct 3, 2010)

Fixes

  • #4: guardian now supports models with not-integer primary keys and they don’t need to be called “id”.

    Important

    For 0.1.X users: it is required to migrate guardian in your projects. Add south to INSTALLED_APPS and run:

    python manage.py syncdb
    python manage.py migrate guardian 0001 --fake
    python manage.py migrate guardian

Improvements

  • Added South migrations support

Release 0.1.1 (Sep 27, 2010)

Improvements

  • Added view decorators: permission_required and permission_required_403

Release 0.1.0 (Jun 6, 2010)

  • Initial public release