Skip to content

Commit

Permalink
Set calculation type of all indicators to Number
Browse files Browse the repository at this point in the history
  • Loading branch information
jefmoura committed Jul 18, 2018
1 parent 5bea4ee commit 27ed689
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions indicators/migrations/0013_set_all_calculation_type_to_numeric.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-07-04 09:56
from __future__ import unicode_literals

from django.db import migrations
from ..models import Indicator


def set_calculation_type(apps, schema_editor):
Indicator.objects.all().update(
calculation_type=Indicator.CALC_TYPE_NUMERIC)


class Migration(migrations.Migration):

dependencies = [
('indicators', '0012_auto_20180704_0256'),
]

operations = [
migrations.RunPython(set_calculation_type),
]

0 comments on commit 27ed689

Please sign in to comment.