Skip to content

Commit

Permalink
Merge pull request #1157 from yilmazbekdemir/add-collecteddata-cell-v…
Browse files Browse the repository at this point in the history
…alue

add cell value to collected data
  • Loading branch information
Rafael Muñoz Cárdenas authored Jan 25, 2019
2 parents 6a7402d + 7691ae4 commit 688fb5c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions indicators/migrations/0019_auto_20190125_0117.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
1 change: 1 addition & 0 deletions indicators/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 688fb5c

Please sign in to comment.