admin.ModelAdmin.has_module_permission()

ModelAdmin.has_module_permission(request)

Should return True if displaying the module on the admin index page and accessing the module’s index page is permitted, False otherwise. Uses User.has_module_perms() by default. Overriding it does not restrict access to the add, change or delete views, has_add_permission(), has_change_permission(), and has_delete_permission() should be used for that.

doc_Django
2016-10-09 18:33:49
Comments
Leave a Comment

Please login to continue.