From 7691ae4e71df4116eb5c13c2e86e9f2d745a8b66 Mon Sep 17 00:00:00 2001 From: yilmazbekdemir Date: Fri, 25 Jan 2019 10:18:44 +0100 Subject: [PATCH] add cell value to collected data --- .../migrations/0019_auto_20190125_0117.py | 25 +++++++++++++++++++ indicators/models.py | 1 + 2 files changed, 26 insertions(+) create mode 100644 indicators/migrations/0019_auto_20190125_0117.py diff --git a/indicators/migrations/0019_auto_20190125_0117.py b/indicators/migrations/0019_auto_20190125_0117.py new file mode 100644 index 000000000..d6cb5630c --- /dev/null +++ b/indicators/migrations/0019_auto_20190125_0117.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.17 on 2019-01-25 09:17 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('indicators', '0018_auto_20190124_0624'), + ] + + operations = [ + migrations.AddField( + model_name='collecteddata', + name='cell_value', + field=models.CharField(blank=True, max_length=24, null=True), + ), + migrations.AddField( + model_name='historicalcollecteddata', + name='cell_value', + field=models.CharField(blank=True, max_length=24, null=True), + ), + ] diff --git a/indicators/models.py b/indicators/models.py index 5e300ca79..63c863c4c 100755 --- a/indicators/models.py +++ b/indicators/models.py @@ -509,6 +509,7 @@ class CollectedData(models.Model): create_date = models.DateTimeField(null=True, blank=True) edit_date = models.DateTimeField(null=True, blank=True) site = models.ManyToManyField(SiteProfile, blank=True, help_text="Geographic location for data source") + cell_value = models.CharField(max_length=24, blank=True, null=True) created_by = models.ForeignKey('auth.User', related_name='collecteddata', null=True, blank=True, on_delete=models.SET_NULL) history = HistoricalRecords() objects = CollectedDataManager()