Merge pull request #145 from taigaio/bug/1484/problem-uploading-twice-the-same-files

Fixing problem with new notifications system on upload 2 equal attachments
remotes/origin/enhancement/email-actions
David Barragán Merino 2014-10-30 11:07:03 +01:00
commit cd890330ed
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('notifications', '0002_historychangenotification'),
]
operations = [
migrations.AlterUniqueTogether(
name='historychangenotification',
unique_together=set([('key', 'owner', 'project', 'history_type')]),
),
]

View File

@ -67,3 +67,6 @@ class HistoryChangeNotification(models.Model):
verbose_name="project",related_name="+")
history_type = models.SmallIntegerField(choices=HISTORY_TYPE_CHOICES)
class Meta:
unique_together = ("key", "owner", "project", "history_type")