1
0
Fork 0
This commit is contained in:
Dece 2018-04-26 21:52:47 +02:00
parent eadd1846e1
commit 410272e38b

View file

@ -11,7 +11,7 @@ from label.tools import (
def artists_view(request):
artists = Artist.objects.all()
context = { 'artists': artists }
context = {'artists': artists}
return render(request, 'label/artists.html', context)
@ -23,7 +23,7 @@ def artist_view(request, slug):
for release in releases:
release.tag = get_catalog_tag_from_id(release.ident)
context = { 'artist': artist, 'releases': releases }
context = {'artist': artist, 'releases': releases}
return render(request, 'label/artist.html', context)
@ -52,11 +52,11 @@ def release_view(request, tag):
ident = get_id_from_catalog_tag(tag)
release = get_object_or_404(Release, ident = ident)
contribs = get_contribs(release.contributors.all())
context = { 'release': release, 'contribs': contribs }
context = {'release': release, 'contribs': contribs}
return render(request, 'label/release.html', context)
def videos_view(request):
videos = VideoClip.objects.order_by('-year', 'title')
context = { 'videos': videos }
context = {'videos': videos}
return render(request, 'label/videos.html', context)