Edited contents

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