Skip to content

Commit

Permalink
Merge pull request #1122 from jefmoura/399-set-calculation-type
Browse files Browse the repository at this point in the history
Set calculation type of all indicators to Number
  • Loading branch information
Rafael Muñoz Cárdenas authored Jul 18, 2018
2 parents 43124ac + 27ed689 commit 882f018
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 882f018

Please sign in to comment.