开发者

How to use or extend Django admin to navigate thru aggregated data?

开发者 https://www.devze.com 2023-02-19 12:00 出处:网络
I would like to know how could I extend Django admin in order to be able to navigate the records using aggregated data.

I would like to know how could I extend Django admin in order to be able to navigate the records using aggregated data.

For example: browse data aggregated by date, month, day, day of the week and see average, max/min or total开发者_开发问答 for other fields.


You can extend the admin templates to add some charts / reports above the normal changelist, changeform, etc (using model methods or something else).

Also, checkout databrowse. I've not used it, but it might provide an easier way to add aggregation.

0

精彩评论

暂无评论...
验证码 换一张
取 消