notify=models.ManyToManyField(User,limit_choices_to={'is_active':True},blank=True,help_text='If set, and the leader board changes, an e-mail notification will be sent to people on this list, every time it changes.')
notify=models.ManyToManyField(
User,
limit_choices_to={"is_active":True},
blank=True,
help_text="If set, and the leader board changes, an e-mail notification will be sent to people on this list, every time it changes.",
)
experiments=models.ManyToManyField(Experiment,
through='Rank',
related_name='leaderboards',
blank=True,
help_text='Experiments currently set on the leaderboard',
experiments=models.ManyToManyField(
Experiment,
through="Rank",
related_name="leaderboards",
blank=True,
help_text="Experiments currently set on the leaderboard",
)
objects=LeaderboardManager()
...
...
@@ -145,25 +132,21 @@ class Leaderboard(models.Model):