Skip to content

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

License

Notifications You must be signed in to change notification settings

bitingmidge/twentytab-totalsum-admin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twentytab-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 twentytab-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 = '€'

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 59.2%
  • HTML 40.8%