Skip to content

ethanscorey/djangodollar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DjangoDollar

This package implements a light-weight installable Django app for manipulating models with dollar values. (It should work for other currencies too if you forgive my U.S.-centric naming conventions.)

The package builds on Django's DecimalField by adding some simple logic for currency rounding rules (all amounts rounded to two decimal places, always rounding up). There are two main classes to be aware of:

  • Dollar: A wrapper class for arithmetic operations with dollar values
  • DollarField: A custom field for representing dollar values in models

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages