django-totalsum-admin

A django app that initializes admin changelist view with last row in results as sum of some numerical fields or properties

MIT License

Downloads
1.6K
Stars
26
Committers
5

django-totalsum-admin

A django app that initializes admin changelist view with last row in results as sum of some numerical fields or properties

Installation

Use the following command: pip install django-totalsum-admin

Configuration

  • settings.py
INSTALLED_APPS = {
    ...,
    'totalsum',
    ...
}

Usage

from totalsum.admin import TotalsumAdmin


class MyAdmin(TotalsumAdmin):
    totalsum_list = ('model_field1', 'model_field2', 'model_property')
    unit_of_measure = '€'
Package Rankings
Top 10.03% on Pypi.org
Related Projects