capitalize types
This commit is contained in:
parent
f9578af0e4
commit
e27bd125ac
2 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue