diff --git a/submissions/migrations/0012_auto_20180519_1047.py b/submissions/migrations/0012_auto_20180519_1047.py new file mode 100644 index 0000000000000000000000000000000000000000..b67c1f3d4929ec9f87d5a1bfc4ce0787adb7a63c --- /dev/null +++ b/submissions/migrations/0012_auto_20180519_1047.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2018-05-19 08:47 +from __future__ import unicode_literals + +import comments.behaviors +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('submissions', '0011_report_file_attachment'), + ] + + operations = [ + migrations.AlterField( + model_name='report', + name='file_attachment', + field=models.FileField(blank=True, null=True, upload_to='uploads/reports/%Y/%m/%d/', validators=[comments.behaviors.validate_file_extension, comments.behaviors.validate_max_file_size]), + ), + ] diff --git a/submissions/models.py b/submissions/models.py index cf0e13a28d73cd5ccf1eff0a2661ca6cc879c1dc..66cf2fc8e02360593861bab43ae881dbd81ebb6b 100644 --- a/submissions/models.py +++ b/submissions/models.py @@ -518,7 +518,7 @@ class Report(SubmissionRelatedObjectMixin, models.Model): # Attachment file_attachment = models.FileField( - upload_to='uploads/reports/%Y/%m/%d/', blank=True, + upload_to='uploads/reports/%Y/%m/%d/', blank=True, null=True, validators=[validate_file_extension, validate_max_file_size]) objects = ReportQuerySet.as_manager()