Django-simptools is a collection with useful functions/classes for daily usage.
See requirements file:
pip install -r requirements
Installation from github:
pip install -e git+https://github.com/RANUX/django-simptools#egg=django-simptools
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))
Example:
from django_simptools.money.models.fields import MoneyField class ModelWithVanillaMoneyField(models.Model): money = MoneyField(max_digits=10, decimal_places=2)
An abstract base class model that provides positive random uid field.
Go to django-simptools directory and run tests:
$ cd test_project/ $ python manage.py test tests
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!