Skip to content

Django-simptools is a library with useful functions/classes for daily usage.

Notifications You must be signed in to change notification settings

RANUX/django-simptools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Django-simptools is a collection with useful functions/classes for daily usage.

Dependencies

See requirements file:

pip install -r requirements

Installation

Installation from github:

pip install -e git+https://github.com/RANUX/django-simptools#egg=django-simptools

money.forms.MoneyField

Example:

from moneyed.classes import CURRENCIES

CURRENCY_CHOICES = [(CURRENCIES['RUB'].code, CURRENCIES['RUB'].name)]

class MoneyForm(forms.Form):
    money = MoneyField(currency_widget=CurrencySelectWidget(choices=CURRENCY_CHOICES))

money.models.fields.MoneyField

Example:

from django_simptools.money.models.fields import MoneyField

class ModelWithVanillaMoneyField(models.Model):
    money = MoneyField(max_digits=10, decimal_places=2)

RandomUIDAbstractModel

An abstract base class model that provides positive random uid field.

Testing

Go to django-simptools directory and run tests:

$ cd test_project/
$ python manage.py test tests

Contributing

The source is available on GitHub - to contribute to the project, fork it on GitHub and send a pull request, all contributions and suggestions are welcome!

About

Django-simptools is a library with useful functions/classes for daily usage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages