equal
deleted
inserted
replaced
10 from tagging.models import Tag, TaggedItem |
10 from tagging.models import Tag, TaggedItem |
11 |
11 |
12 |
12 |
13 def front_home(request): |
13 def front_home(request): |
14 # Get the 3 last annotated contents |
14 # Get the 3 last annotated contents |
15 last_contents = Content.objects.order_by('-stat_annotation__last_annotated').exclude(stat_annotation__nb_annotation=0)[:3] |
15 last_contents = Content.objects.order_by('-stat_annotation__last_annotated').exclude(stat_annotation__nb_annotations=0)[:3] |
16 # Get the most annotated contents |
16 # Get the most annotated contents |
17 most_contents = Content.objects.order_by('-stat_annotation__nb_annotations')[:8] |
17 most_contents = Content.objects.order_by('-stat_annotation__nb_annotations')[:8] |
18 # Get the active groups |
18 # Get the active groups |
19 active_groups = Group.objects.exclude(name=settings.PUBLIC_GROUP_NAME)[:5] |
19 active_groups = Group.objects.exclude(name=settings.PUBLIC_GROUP_NAME)[:5] |
20 # Get the main tag list |
20 # Get the main tag list |