Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/20tab/django-totalsum-admin

A django app that initializes admin changelist view with last row in results as sum of some numerical fields or properties
https://github.com/20tab/django-totalsum-admin

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

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

```py
INSTALLED_APPS = {
...,
'totalsum',
...
}
```

## Usage

```py
from totalsum.admin import TotalsumAdmin

class MyAdmin(TotalsumAdmin):
totalsum_list = ('model_field1', 'model_field2', 'model_property')
unit_of_measure = '€'
```