diff --git a/indicators/migrations/0020_auto_20190128_1307.py b/indicators/migrations/0020_auto_20190128_1307.py new file mode 100644 index 000000000..eb92505ee --- /dev/null +++ b/indicators/migrations/0020_auto_20190128_1307.py @@ -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'), + ), + ] diff --git a/indicators/models.py b/indicators/models.py index 63c863c4c..7d144b8c1 100755 --- a/indicators/models.py +++ b/indicators/models.py @@ -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")