Commit fe23067f authored by Bryan Carlo Guanlao's avatar Bryan Carlo Guanlao

added related name for reaction model

parent 118ce515
......@@ -19,6 +19,7 @@ class Reaction(models.Model):
announcement = models.ForeignKey(
Announcement,
on_delete=models.CASCADE,
related_name='reaction'
)
LIKE = 'Like'
LOVE = 'Love'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment