Remove show moderators model
This commit is contained in:
parent
307fdd4f7b
commit
845845bb2e
@ -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,
|
||||||
|
Reference in New Issue
Block a user