Fixing problem with new notifications system on upload 2 equal attachments.

remotes/origin/enhancement/email-actions
Alejandro Alonso 2014-10-29 12:48:11 +01:00 committed by David Barragán Merino
parent 09138ee4ff
commit 147d199c3d
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")