- Official Django 1.8 support (thanks to multiple contributors)
- Official Django 1.7 support (thanks Troy Grosfield and Brian May)
- Allow to override
PermissionRequiredMixin.get_permission_object
, part ofPermissionRequiredMixin.check_permissions
method, responsible for retrieving single object (Thanks zauddelig) - French translations (Thanks Morgan Aubert)
- Added support for
User.get_all_permissions
(thanks Michael Drescher)
- Fixed another issue with custom primary keys at admin extensions (Thanks Omer Katz)
Unfortunately this was broken release not including any important changes.
- Fixed issue with custom primary keys at admin extensions (Thanks Omer Katz)
get_403_or_None
now accepts Python path to the view function, for example'django.contrib.auth.views.login'
(Thanks Warren Volz)- Added
with_superuser
flag toguardian.shortcuts.get_objects_for_user
(Thanks Bruno Ribeiro da Silva) - Added possibility to disable monkey patching of the
User
model. (Thanks Cezar Jenkins)
- Removed
get_for_object
methods from managers (#188) - Extended documentation
- GuardedModelAdmin has been splitted into mixins
- Faster queries in get_objects_for_user when use_groups=False or any_perm=True (#148)
- Improved speed of get_objects_for_user shortcut
- Support for custom User model with not default username field
- Added GUARDIAN_GET_INIT_ANONYMOUS_USER setting (#179)
- Added
accept_global_perms
toPermissionRequiredMixin
- Added brazilian portuguese translations
- Added polish translations
- Added
wheel
support - Fixed wrong anonymous user checks
- Support for Django 1.6
- Support for Django 1.7 alpha
Important
In this release we have removed undocumented get_for_object
method
from both UserObjectPermissionManager
and
GroupObjectPermissionManager
. Not deprecated, removed. Those methods
were not used within django-guardian
and their odd names could lead to
issues if user would believe they would return object level permissions
associated with user/group and object passed as the input. If you depend
on those methods, you'd need to stick with version 1.1 and make sure you
do not misuse them.
- Support for Django 1.5 (including Python 3 combination)
- Support for custom user models (introduced by Django 1.5)
- Ability to create permissions using Foreign Keys
- Added
user_can_access_owned_by_group_objects_only
option toGuardedModelAdmin.
- Minor documentation fixups
- Spanish translations
- Better support for grappelli
- Updated examples project
- Speed up
get_perms
shortcut function
- Added
GUARDIAN_RENDER_403
andGUARDIAN_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
andget_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
- Added
get_objects_for_group
shortcut (thanks to Rafael Ponieman) - Added
user_can_access_owned_objects_only
flag toGuardedModelAdmin
- Updated and fixed issues with example app (thanks to Bojan Mihelac)
- Minor typo fixed at documentation
- Included ADC theme for documentation
get_users_with_perms
now acceptswith_group_users
flag- Fixed
group_id
issue at admin templates - Small fix for documentation building process
- It's 2011 (updated dates within this file)
get_users_with_perms
now acceptswith_superusers
flag- Small fix for documentation building process
- A final v1.0 release!
- Added
get_objects_for_user
shortcut function - Added few tests
- Fixed issues related with
django.contrib.auth
tests - Removed example project from source distribution
- 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
- Added possibility to operate with global permissions for assign and
remove_perm
shortcut functions - Added possibility to generate PDF documentation
- Fixed some tests
- Fixed admin templates not included in
MANIFEST.in
- Fixed admin integration codes
- Added admin integration
- Added reusable forms for object permissions management
- Added
guardian.shortcuts.get_users_with_perms
function - Added
AUTHORS
file
- Fixed migrations order (thanks to Daniel Rech)
- Fixed migration (it wasn't actually updating object_pk field)
#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
toINSTALLED_APPS
and run:python manage.py syncdb python manage.py migrate guardian 0001 --fake python manage.py migrate guardian
- Added South migrations support
- Added view decorators:
permission_required
andpermission_required_403
- Initial public release