Problem was that every map had the same modified_at

This commit is contained in:
Yohan Boniface 2012-12-08 01:02:50 +01:00
parent cec8a1d5af
commit 569db8e7e0

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.order_by('-pk')[:100]
maps = Map.objects.order_by('-modified_at')[:100]
return {
"maps": maps
}