Skip to content

Commit b68bfe7

Browse files
author
Zoran Pandovski
committed
Make implication and author optional
1 parent 5dde85c commit b68bfe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/fok/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ class Meta:
125125

126126
user = models.ForeignKey(get_user_model(), on_delete=models.SET_NULL, null=True, related_name='pledges')
127127
campaign = models.ForeignKey(Campaign, on_delete=models.SET_NULL, null=True, related_name='pledges')
128-
implication = models.FloatField(verbose_name='Threshold')
129-
author_position = models.ManyToManyField(EnabledAuthorPosition)
128+
implication = models.FloatField(verbose_name='Threshold', blank=True, default=None)
129+
author_position = models.ManyToManyField(EnabledAuthorPosition, blank=True, default=None)
130130
allow_public_name = models.BooleanField(default=False)
131131
created_at = models.DateTimeField(auto_now_add=True)
132132
updated_at = models.DateTimeField(auto_now=True)

0 commit comments

Comments
 (0)