--- 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