Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilkerson authored Jan 29, 2020
1 parent 9b51d8a commit 1330fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assignment_desk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Role(models.Model):
description = models.TextField(blank=True, null=True)
color = ColorField(default='#0185D3')

type = models.ForeignKey(RoleType, related_name='roles')
type = models.ForeignKey(RoleType, related_name='roles', on_delete=models.CASCADE)

priority = models.PositiveSmallIntegerField(default=10)

Expand Down

0 comments on commit 1330fa6

Please sign in to comment.