commit query
authorymh <ymh.work@gmail.com>
Fri, 10 Feb 2012 08:57:48 +0100
changeset 553 b5848487839b
parent 552 6fbf608bd2a7
child 554 765e7c443ebe
commit query
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