How to add report section to the Django admin?

后端 未结 2 1760
栀梦
栀梦 2021-02-12 22:07

I want to implement a report section in Django admin. This would mean adding a custom section in the admin homepage where instead of a list of models I would see a list of repor

2条回答
  •  孤独总比滥情好
    2021-02-12 22:32

    Additionally, there is this nice app:

    django-admin-reports

    "admin_reports" is a Django application to easily create data aggregation reports to display inside Django admin.

    The Django admin is very much centered on models and it provide a quick and simple way to create a GUI for the CRUD interface, but often there's the need to display data in an aggregate form, here's where admin_reports comes handy.

    The idea is to have a class similar to ModelAdmin (from django.contrib.admin) that allow to display derived data concentrating on implementing the aggregation procedure.

提交回复
热议问题