Commit fc328d0a authored by jocelyn's avatar jocelyn

fixes #62 les articles et publications papier sont désormais classées par date de publication

git-svn-id: svn://marvin.crapouillou.net/lettravox/trunk@65 7fa04f7f-7541-4a08-844f-dcbc5afaef51
parent 26e2c22c
......@@ -95,11 +95,11 @@ urlpatterns += patterns('',
#
urlpatterns += patterns('django.views',
(r'^publications-papier/$','generic.list_detail.object_list',
{'queryset' : articles.models.Article.objects.filter(categorie='P'),
{'queryset' : articles.models.Article.objects.filter(categorie='P').order_by('-pub_date'),
'extra_context' : {'categorie': 'Publications papier'}}),
(r'^actu/(?P<slug>[-\w]+)/?$','generic.list_detail.object_detail',
{'queryset' : articles.models.Article.objects.all(),
'slug_field':'slug'}),
(r'^actu/$','generic.list_detail.object_list',
{'queryset' : articles.models.Article.objects.all()}),
{'queryset' : articles.models.Article.objects.all().order_by('-pub_date')}),
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment