Skip to content

Commit

Permalink
Merge pull request #1156 from yilmazbekdemir/update-disaggregation-model
Browse files Browse the repository at this point in the history
update disaggregation model with table information
  • Loading branch information
ybekdemir authored Jan 24, 2019
2 parents 495d103 + 2e68334 commit 6a7402d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions indicators/migrations/0018_auto_20190124_0624.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-01-24 14:24
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('indicators', '0017_auto_20190118_0601'),
]

operations = [
migrations.AddField(
model_name='disaggregationvalue',
name='column_name',
field=models.CharField(blank=True, max_length=24),
),
migrations.AddField(
model_name='disaggregationvalue',
name='column_value',
field=models.CharField(blank=True, max_length=24),
),
migrations.AddField(
model_name='disaggregationvalue',
name='table_uuid',
field=models.CharField(blank=True, max_length=36),
),
]
3 changes: 3 additions & 0 deletions indicators/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ class DisaggregationValue(models.Model):
disaggregation_label = models.ForeignKey(DisaggregationLabel, on_delete=models.deletion.PROTECT)
indicator = models.ForeignKey('indicators.Indicator', null=True, blank=True)
value = models.CharField(max_length=765, blank=True)
table_uuid = models.CharField(max_length=36, blank=True)
column_name = models.CharField(max_length=24, blank=True)
column_value = models.CharField(max_length=24, blank=True)
create_date = models.DateTimeField(null=True, blank=True)
edit_date = models.DateTimeField(null=True, blank=True)

Expand Down

0 comments on commit 6a7402d

Please sign in to comment.