Problem was that every map had the same modified_at
This commit is contained in:
parent
cec8a1d5af
commit
569db8e7e0
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('-pk')[:100]
|
maps = Map.objects.order_by('-modified_at')[:100]
|
||||||
return {
|
return {
|
||||||
"maps": maps
|
"maps": maps
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue