Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Object factory for django
Python Makefile

Remove case when last digit is ommited

In case of:
	amount = models.DecimalField(
	    null=False,
	    max_digits=16,
	    decimal_places=2,
	    blank=False,
	)

Decimal(47461379535606.35)

converts to

Decimal('47461379535606.4')

What is not the best situation for testing. It seems that Django thinks about "." as a symbol that included into max_digits.
latest commit e02e19f450
@yrik yrik authored committed

README.rst

Model Mommy: Smart fixtures for better tests

Model-mommy offers you a smart way to create fixtures for testing in Django. With a simple and powerful API you can create many objects with a single line of code.

Test Status Latest PyPI version Number of PyPI downloads

Install

pip install model_mommy

Usage and Info

Something went wrong with that request. Please try again.