Skip to content

Commit

Permalink
Merge pull request #1159 from yilmazbekdemir/add-evidence-url-string
Browse files Browse the repository at this point in the history
add field to store evidence document url
  • Loading branch information
ybekdemir authored Jan 28, 2019
2 parents 688fb5c + aec42f5 commit ee7a430
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions indicators/migrations/0020_auto_20190128_1307.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-28 21:07
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('indicators', '0019_auto_20190125_0117'),
]

operations = [
migrations.AddField(
model_name='collecteddata',
name='evidence_url',
field=models.CharField(blank=True, help_text=b'Evidence Document url', max_length=255, null=True, verbose_name=b'Evidence Document url'),
),
migrations.AddField(
model_name='historicalcollecteddata',
name='evidence_url',
field=models.CharField(blank=True, help_text=b'Evidence Document url', max_length=255, null=True, verbose_name=b'Evidence Document url'),
),
]
1 change: 1 addition & 0 deletions indicators/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ class CollectedData(models.Model):
date_collected = models.DateTimeField(null=True, blank=True, help_text="")
comment = models.TextField("Comment/Explanation", max_length=255, blank=True, null=True)
evidence = models.ForeignKey(Documentation, null=True, blank=True, verbose_name="Evidence Document or Link", help_text="Evidence Document or Link")
evidence_url = models.CharField(max_length=255, null=True, blank=True, verbose_name="Evidence Document url", help_text="Evidence Document url")
approved_by = models.ForeignKey(TolaUser, blank=True, null=True, verbose_name="Approved By", related_name="approving_data", help_text="Who approved collection")
tola_table = models.ForeignKey(TolaTable, blank=True, null=True, help_text="If Track table was used link to it here")
update_count_tola_table = models.BooleanField("Would you like to update the achieved total with the row count from TolaTables?",default=False, help_text="Update the unique count from Table if linked when updated")
Expand Down

0 comments on commit ee7a430

Please sign in to comment.