Order map by modified_at desc in list

This commit is contained in:
Yohan Boniface 2012-12-08 00:50:46 +01:00
parent 028323bf3d
commit aed4ddb9cd

View file

@ -8,7 +8,7 @@ class Home(TemplateView):
list_template_name = "chickpea/map_list.html"
def get_context_data(self, **kwargs):
maps = Map.objects.all()[:100]
maps = Map.objects.order_by('-modified_at')[:100]
return {
"maps": maps
}