Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/20tab/django-totalsum-admin
- Owner: 20tab
- License: mit
- Created: 2014-08-29T15:51:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-11-29T17:25:40.000Z (about 2 years ago)
- Last Synced: 2024-10-31T21:23:42.419Z (about 2 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 26
- Watchers: 3
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 TotalsumAdminclass MyAdmin(TotalsumAdmin):
totalsum_list = ('model_field1', 'model_field2', 'model_property')
unit_of_measure = '€'
```