Commit 02b60707 authored by Samuel GAIST's avatar Samuel GAIST

[search][models] Fix warning from Django

limit_choices_to has no effect on ManyToManyField with a
through model.
parent 992ab38c
......@@ -132,7 +132,6 @@ class Leaderboard(models.Model):
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,
limit_choices_to={'status': Experiment.DONE},
through='Rank',
related_name='leaderboards',
blank=True,
......
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