fedora_elections/models.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 493f4889f67504b31c916d4b3fb13caa26aa9704
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat Nov 29 22:20:27 2014 +0100
Include the timestamp in the group_by to make pg happy - thanks faitout
diff --git a/fedora_elections/models.py b/fedora_elections/models.py
index 8aec303..e6cddc0 100644
--- a/fedora_elections/models.py
+++ b/fedora_elections/models.py
@@ -428,7 +428,8 @@ class Vote(BASE):
).filter(
Vote.election_id == election_id
).group_by(
- Vote.voter
+ Vote.voter,
+ Vote.timestamp
).all()
stats['dates'] = [
Show replies by date