I dont want to show the recent action widget in django admin site.I don’t know how to get this done.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can override the
admin/index.htmltemplate to disable the display. There’sa sidebar block you might want to change/remove.
Conditionally enabling or disabling actions
ModelAdmin.get_actions(request)
Finally, you can conditionally enable or disable actions on a per-request (and hence per-user basis) by overriding ModelAdmin.get_actions().
This returns a dictionary of actions allowed. The keys are action names, and the values are (function, name, short_description) tuples.
Most of the time you’ll use this method to conditionally remove actions from the list gathered by the superclass. For example, if I only wanted users whose names begin with ‘J’ to be able to delete objects in bulk, I could do the following:
i edited the answer you may find more like this at https://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/