-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep track of whether all attachments have been submitted
Fixes: #1049 Add new fields to the model instance to keep track of: - How many attachments, if any are expected in a submission - How many attachments have been actually received - Whether all attachments have been received
- Loading branch information
1 parent
f4b9b23
commit ee1c83f
Showing
6 changed files
with
146 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.1 on 2017-08-14 08:32 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('logger', '0033_auto_20170705_0159'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='instance', | ||
name='media_all_received', | ||
field=models.BooleanField( | ||
default=True, | ||
verbose_name='Received All Media Attachemts' | ||
), | ||
), | ||
migrations.AddField( | ||
model_name='instance', | ||
name='media_count', | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
verbose_name='Received Media Attachments' | ||
), | ||
), | ||
migrations.AddField( | ||
model_name='instance', | ||
name='total_media', | ||
field=models.PositiveIntegerField( | ||
default=0, | ||
verbose_name='Total Media Attachments' | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters