Skip to content

Commit 2eec257

Browse files
committed
Add default=None to ballot in BallotPositionDocEvent so it's backwards compatible
- Legacy-Id: 4342
1 parent 5cbfbba commit 2eec257

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ class BallotDocEvent(DocEvent):
356356
ballot_type = models.ForeignKey(BallotType)
357357

358358
class BallotPositionDocEvent(DocEvent):
359-
ballot = models.ForeignKey(BallotDocEvent, null=True)
359+
ballot = models.ForeignKey(BallotDocEvent, null=True, default=None) # default=None is a temporary migration period fix, should be removed when charter branch is live
360360
ad = models.ForeignKey(Person)
361361
pos = models.ForeignKey(BallotPositionName, verbose_name="position", default="norecord")
362362
discuss = models.TextField(help_text="Discuss text if position is discuss", blank=True)

0 commit comments

Comments
 (0)