django-admin: Add extra row with totals
Yes, you can do it in many ways, but most django-ist way to do is: First override the default django listing view… And give a new template file directory ModelAdmin.changelist_view(self, request, extra_context=None) Like: class MyModelAdmin(admin.ModelAdmin): # A template for a very customized change view: change_list_template=”admin/myapp/extras/sometemplate_change_form.html” def get_total(self): #functions to calculate whatever you want… total = … Read more