Edited contents

parent 47fc7320
......@@ -36,7 +36,7 @@ class Announcement(models.Model):
def get_absolute_url(self):
return reverse(
'announcements:announcement-details',
'announcement_board:announcement-details',
kwargs={'pk': self.pk},
)
......@@ -54,11 +54,10 @@ class Reaction(models.Model):
Like = 'Like'
Love = 'Love'
Angry = 'Angry'
REACTIONS = [
((Like, 'Like'),
REACTIONS = ((Like, 'Like'),
(Love, 'Love'),
(Angry, 'Angry'))
]
name = models.CharField(max_length=10, choices=REACTIONS, default=Like)
tally = models.IntegerField(default = 0)
......
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