Self hosted FLOSS fitness/workout, nutrition and weight tracker
Make the payment amount a decimal field
Roland Geider78fedd024c07
diff --git a/wger/gym/migrations/0004_auto_20151003_2357.py b/wger/gym/migrations/0004_auto_20151003_2357.pynew file mode 100644index 000000000..b42492453--- /dev/null+++ b/wger/gym/migrations/0004_auto_20151003_2357.py@@ -0,0 +1,19 @@+# -*- coding: utf-8 -*-+from __future__ import unicode_literals++from django.db import models, migrations+++class Migration(migrations.Migration):++ dependencies = [+ ('gym', '0003_auto_20151003_2008'),+ ]++ operations = [+ migrations.AlterField(+ model_name='contract',+ name='amount',+ field=models.DecimalField(default=0, verbose_name='Amount', max_digits=12, decimal_places=2),+ ),+ ]diff --git a/wger/gym/models.py b/wger/gym/models.pyindex 448039e5d..fef1701ad 100644--- a/wger/gym/models.py+++ b/wger/gym/models.py@@ -447,8 +447,10 @@ class Contract(m.Model):Optional type of contract'''- amount = m.PositiveIntegerField(verbose_name=_('Amount'),- default=0)+ amount = m.DecimalField(verbose_name=_('Amount'),+ decimal_places=2,+ max_digits=12,+ default=0)'''The amount to pay'''