# HG changeset patch # User ymh # Date 1328860668 -3600 # Node ID b5848487839b79bc9c2e2a9e3c790146dd55176b # Parent 6fbf608bd2a7826e12e2b83d032c3ee06967d264 commit query diff -r 6fbf608bd2a7 -r b5848487839b src/ldt/ldt/ldt_utils/views/front.py --- a/src/ldt/ldt/ldt_utils/views/front.py Fri Feb 10 01:05:32 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/views/front.py Fri Feb 10 08:57:48 2012 +0100 @@ -12,7 +12,7 @@ def front_home(request): # Get the 3 last annotated contents - last_contents = Content.objects.order_by('-stat_annotation__last_annotated').exclude(stat_annotation__nb_annotation=0)[:3] + last_contents = Content.objects.order_by('-stat_annotation__last_annotated').exclude(stat_annotation__nb_annotations=0)[:3] # Get the most annotated contents most_contents = Content.objects.order_by('-stat_annotation__nb_annotations')[:8] # Get the active groups