Mercurial > public > sg101
diff podcast/views.py @ 1086:aa43db10c565
Convert podcast app to V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 03 May 2016 20:58:15 -0500 |
parents | e932f2ecd4a7 |
children |
line wrap: on
line diff
--- a/podcast/views.py Mon May 02 20:03:18 2016 -0500 +++ b/podcast/views.py Tue May 03 20:58:15 2016 -0500 @@ -62,11 +62,12 @@ return render(request, 'podcast/index.html', { 'channel': channel, + 'V3_DESIGN': True, }) def detail(request, id): - podcast = get_object_or_404(Item.objects.select_related(), pk = id) + podcast = get_object_or_404(Item.objects.select_related(), pk=id) ext = get_ext_from_url(podcast.enclosure_url) alt_ext = None @@ -83,6 +84,7 @@ 'alt_ext': alt_ext, 'jplayer_media': jplayer_media, 'jplayer_supplied': jplayer_supplied, + 'V3_DESIGN': True, })