From c92df1d4e49d699f3c00b446729d0b50b8714f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Fri, 8 May 2015 15:15:15 +0200 Subject: [PATCH] Fix importer --- .../migrations/0004_auto_20150508_1141.py | 21 +++++++++++++++++++ taiga/projects/attachments/models.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 taiga/projects/attachments/migrations/0004_auto_20150508_1141.py diff --git a/taiga/projects/attachments/migrations/0004_auto_20150508_1141.py b/taiga/projects/attachments/migrations/0004_auto_20150508_1141.py new file mode 100644 index 00000000..1e1855cf --- /dev/null +++ b/taiga/projects/attachments/migrations/0004_auto_20150508_1141.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +from django.conf import settings + + +class Migration(migrations.Migration): + + dependencies = [ + ('attachments', '0003_auto_20150114_0954'), + ] + + operations = [ + migrations.AlterField( + model_name='attachment', + name='owner', + field=models.ForeignKey(verbose_name='owner', blank=True, related_name='change_attachments', to=settings.AUTH_USER_MODEL, null=True), + preserve_default=True, + ), + ] diff --git a/taiga/projects/attachments/models.py b/taiga/projects/attachments/models.py index df466c18..c95c0f6b 100644 --- a/taiga/projects/attachments/models.py +++ b/taiga/projects/attachments/models.py @@ -49,7 +49,7 @@ def get_attachment_file_path(instance, filename): class Attachment(models.Model): - owner = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=False, + owner = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=True, related_name="change_attachments", verbose_name=_("owner")) project = models.ForeignKey("projects.Project", null=False, blank=False,