Order by modified_at create problem with endless_navigation and browser cache
Need to handle cache properly before
This commit is contained in:
parent
aed4ddb9cd
commit
cec8a1d5af
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ class Home(TemplateView):
|
||||||
list_template_name = "chickpea/map_list.html"
|
list_template_name = "chickpea/map_list.html"
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
maps = Map.objects.order_by('-modified_at')[:100]
|
maps = Map.objects.order_by('-pk')[:100]
|
||||||
return {
|
return {
|
||||||
"maps": maps
|
"maps": maps
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue