Skip to content
Snippets Groups Projects
Commit 02b60707 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[search][models] Fix warning from Django

limit_choices_to has no effect on ManyToManyField with a
through model.
parent 992ab38c
No related branches found
No related tags found
2 merge requests!2551.4.x,!238Upgrade to django 1.11
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment