Creating admin actions

The Django administration system provides actions that we can execute for selected items in the list. One action is provided, by default, and it is used to delete selected instances. In this recipe, we will create an additional action for the list of the Product model, which will allow the administrators to export selected products to Excel spreadsheets.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.12.240