Commit 14498260 authored by Evert Prants's avatar Evert Prants

Add views and pinned to discussion board

parent d32d0b06
......@@ -296,7 +296,8 @@ class Submission(TimestampedModel):
verbose_name='Embed URL'
)
pinned = models.BooleanField(
help_text='Whether or not this submission is pinned'
help_text='Whether or not this submission is pinned',
default=False
)
tags = models.CharField(
help_text='Tags applied to this link submission',
......@@ -370,6 +371,14 @@ class DiscussionBoard(TimestampedModel):
help_text='The body of the post',
verbose_name='Body'
)
views = models.IntegerField(
help_text='The amount of times this board has been viewed',
default=0
)
pinned = models.BooleanField(
help_text='Whether or not this board is pinned',
default=False
)
def __str__(self):
return '[%s] "%s" by %s'%(self.show.abbr, self.title, self.user)
......
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