Commit 9a8011b2 authored by Valentin Famelart's avatar Valentin Famelart

Change subscription_cost field to decimal

Summary:
In association model, subscription_cost now is a DecimalField in form of
XXX,XX

Test Plan: Change an association's subscription cost and admire the result

Reviewers: corbeaumax

Reviewed By: corbeaumax

Maniphest Tasks: T63

Differential Revision: https://phabricator.atilla.org/D36
parent ec15dfdd
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-02-08 14:37
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('associations', '0006_auto_20180126_0102'),
]
operations = [
migrations.AlterField(
model_name='association',
name='subscription_cost',
field=models.DecimalField(decimal_places=2, default=0, max_digits=5, verbose_name='Coût de la cotisation'),
),
]
......@@ -43,8 +43,10 @@ class Association(models.Model):
default="associations/banner/default.png"
)
subscription_cost = models.IntegerField(
subscription_cost = models.DecimalField(
"Coût de la cotisation",
max_digits=5,
decimal_places=2,
default=0,
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment