Skip to content

Commit 930da33

Browse files
committed
set default link_type, removing possibility of bad link type
1 parent 7d18822 commit 930da33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anthill/projects/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Role(models.Model):
6565
class Link(models.Model):
6666
name = models.CharField(max_length=100)
6767
url = models.URLField()
68-
link_type = models.PositiveSmallIntegerField(choices=LINK_TYPES)
68+
link_type = models.PositiveSmallIntegerField(choices=LINK_TYPES, default=SITE_LINK)
6969

7070
project = models.ForeignKey(Project, related_name='links')
7171

0 commit comments

Comments
 (0)