Skip to content

Commit 4eb3cad

Browse files
committed
Remove unique together constraint
1 parent ccf7349 commit 4eb3cad

3 files changed

Lines changed: 38 additions & 1 deletion

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('proposals', '0018_auto_20160806_1727'),
11+
]
12+
13+
operations = [
14+
migrations.AddField(
15+
model_name='proposalcomment',
16+
name='comment_type',
17+
field=models.PositiveSmallIntegerField(default=0, choices=[(0, 'All general comments'), (1, 'Second phase voting')]),
18+
preserve_default=True,
19+
),
20+
]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('proposals', '0019_proposalcomment_comment_type'),
11+
]
12+
13+
operations = [
14+
migrations.AlterUniqueTogether(
15+
name='proposalsectionreviewervote',
16+
unique_together=set([]),
17+
),
18+
]

junction/proposals/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ def __str__(self):
262262
return "[{}] {}".format(self.vote_value, self.proposal)
263263

264264
class Meta:
265-
unique_together = ("proposal", "voter")
266265
verbose_name = 'ProposalSectionReviewerVote'
267266

268267

0 commit comments

Comments
 (0)