lukaszb/django-guardian — Issue #64: GuardedModelAdmin as mixin
Author: marcofucci
Created: 2012-03-08 14:21:07+00:00
State: open

This is quite easy to implement and **really** useful.

The idea is to separate the logic currently defined in ```GuardedModelAdmin``` so generic properties and methods are defined in a new mixin class.
So ```GuardedModelAdminMixin``` will define ```get_obj_perms_base_context```, ```obj_perms_manage_view```, ```get_obj_perms_manage_template``` etc with relative properties and ```GuardedModelAdmin``` will use the Mixin and will define ```get_urls``` and ```queryset```.

In this way if a django app extends ModelAdmin using a custom one, you can still include the mixin and rewrite the ```get_urls``` method yourself to include the guardian ones.

Please let me know your thoughts, I might implement it myself if is sounds good and pull request the change.