capitalize types

This commit is contained in:
j 2022-01-28 16:08:31 +00:00
commit e27bd125ac
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ def films(request):
context['films'] = models.Film.objects.filter(public=True).order_by('position', 'data__title')
types = []
for f in context['films']:
types += f.data['type']
types += [t.capitalize() for t in f.data['type']]
types = Counter(types)
context['types'] = []
for t in sorted(types):