Remove show moderators model

This commit is contained in:
Evert Prants 2017-12-28 17:03:49 +02:00
parent 307fdd4f7b
commit 845845bb2e
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -145,32 +145,6 @@ class Ban(TimestampedModel):
def __str__(self): def __str__(self):
return ("Permanent" if self.permanent else "Temporary") + " ban of %s"%self.user return ("Permanent" if self.permanent else "Temporary") + " ban of %s"%self.user
class ShowModerator(TimestampedModel):
show = models.ForeignKey(
Show,
on_delete=models.CASCADE,
help_text='The show this user moderates',
verbose_name='Moderated Show',
related_name='moderators',
)
user = models.ForeignKey(
User,
on_delete=models.CASCADE,
help_text='The user who moderates this show',
verbose_name='Moderator',
related_name='moderated_shows'
)
appointed_by = models.ForeignKey(
User,
on_delete=models.SET_NULL,
related_name='appointed_mods',
null=True,
help_text='The user who appointed this moderator',
verbose_name='Appointed by'
)
def __str__(self):
return "%s on %s"%(self.user,self.show.abbr)
class Report(TimestampedModel): class Report(TimestampedModel):
reporter = models.ForeignKey( reporter = models.ForeignKey(
User, User,