From 02b6070714914b3383f548b067459d569845edf0 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Thu, 8 Mar 2018 09:39:41 +0100
Subject: [PATCH] [search][models] Fix warning from Django

limit_choices_to has no effect on ManyToManyField with a
through model.
---
 beat/web/search/models.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/beat/web/search/models.py b/beat/web/search/models.py
index 5577c5637..f70b392b3 100644
--- a/beat/web/search/models.py
+++ b/beat/web/search/models.py
@@ -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,
-- 
GitLab