avoid duplicate users for or queries, fixes #2871

This commit is contained in:
j 2016-01-12 12:06:12 +05:30
parent e05774ed96
commit face7da3da

View file

@ -109,4 +109,5 @@ class SessionDataManager(Manager):
user) user)
if conditions: if conditions:
qs = qs.filter(conditions) qs = qs.filter(conditions)
qs = qs.distinct()
return qs return qs