Fix importer

remotes/origin/enhancement/email-actions
David Barragán Merino 2015-05-08 15:15:15 +02:00
parent e00922fe96
commit c92df1d4e4
2 changed files with 22 additions and 1 deletions

View File

@ -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,
),
]

View File

@ -49,7 +49,7 @@ def get_attachment_file_path(instance, filename):
class Attachment(models.Model): 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", related_name="change_attachments",
verbose_name=_("owner")) verbose_name=_("owner"))
project = models.ForeignKey("projects.Project", null=False, blank=False, project = models.ForeignKey("projects.Project", null=False, blank=False,