Fixing problem with new notifications system on upload 2 equal attachments.
parent
09138ee4ff
commit
147d199c3d
|
@ -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')]),
|
||||
),
|
||||
]
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue