I came across the situation described on the ticket #8146 [1], I've changed the permissions for a model allowing the user to access only certain instances of a model.
As I don't want to give the user access to all objects, I've extended the `AdminSite`, changing the `index` view to ignore `user.has_module_perms` and check only the `model_admin.get_model_perms` method. The main problem is that I can control the permissions but I can't get the user to the models. Maybe the `user.has_module_perms` could be replaced by a method on the `AdminSite` for easier customization. Or the `AdminSite.index` view should respect the custom permissions. I think that the same concept applies to `AdminSite.app_index`. [1] http://code.djangoproject.com/ticket/8146 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
