mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-05 22:14:45 +00:00
Merge pull request #881 from coredumperror/snippet_sort_fix
Fix for snippet sorting of models with capitalized verbose_name.
This commit is contained in:
commit
5658eabe02
2 changed files with 2 additions and 2 deletions
|
|
@ -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()),
|
||||
})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue