Order by modified_at create problem with endless_navigation and browser cache

Need to handle cache properly before
This commit is contained in:
Yohan Boniface 2012-12-08 00:56:36 +01:00
parent aed4ddb9cd
commit cec8a1d5af

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