kopia lustrzana https://github.com/wagtail/wagtail
Merge pull request #881 from coredumperror/snippet_sort_fix
Fix for snippet sorting of models with capitalized verbose_name.pull/915/head
commit
5658eabe02
|
@ -13,7 +13,7 @@
|
|||
<div class="row row-flush title">
|
||||
<h2>
|
||||
<a href="{% url 'wagtailsnippets_list' content_type.app_label content_type.model %}" class="col6">
|
||||
{{ name|capfirst }}
|
||||
{{ name|capfirst }}
|
||||
</a>
|
||||
</h2>
|
||||
<small class="col6">{{ description }}</small>
|
||||
|
|
|
@ -82,7 +82,7 @@ def index(request):
|
|||
if user_can_edit_snippet_type(request.user, content_type)
|
||||
]
|
||||
return render(request, 'wagtailsnippets/snippets/index.html', {
|
||||
'snippet_types': snippet_types,
|
||||
'snippet_types': sorted(snippet_types, key=lambda x: x[0].lower()),
|
||||
})
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue