diff --git a/pandora/user/managers.py b/pandora/user/managers.py index f09238b6..4c2a4d8a 100644 --- a/pandora/user/managers.py +++ b/pandora/user/managers.py @@ -102,11 +102,12 @@ class SessionDataManager(Manager): #join query with operator qs = self.get_query_set() - + query = data.get('query', {}) conditions = parseConditions(query.get('conditions', []), query.get('operator', '&'), user) if conditions: qs = qs.filter(conditions) + qs = qs.distinct() return qs