From: afilsaime Date: Thu, 4 Jun 2015 14:49:22 +0000 (+0200) Subject: fix list display error X-Git-Tag: 1.6a^2~15^2~38 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f60863e1a1ef06a0d8978cf3749ed11d6a475a7f;p=telemeta.git fix list display error --- diff --git a/examples/sandbox/src/django-haystack b/examples/sandbox/src/django-haystack index bd60745c..cecb459f 160000 --- a/examples/sandbox/src/django-haystack +++ b/examples/sandbox/src/django-haystack @@ -1 +1 @@ -Subproject commit bd60745ce82318b1819768c9a31db0579228654d +Subproject commit cecb459ff4468a79a43cead3d09e213d0980c080 diff --git a/telemeta/templates/search/confirmation_add_playslist.html b/telemeta/templates/search/confirmation_add_playslist.html index 26e0f8b4..ac3e530b 100644 --- a/telemeta/templates/search/confirmation_add_playslist.html +++ b/telemeta/templates/search/confirmation_add_playslist.html @@ -7,5 +7,6 @@ {% endblock %} {% block content %} {{existing_playlists}} + {{user.username}}

Added to PlayList

{% endblock %} \ No newline at end of file diff --git a/telemeta/views/new_playlist.py b/telemeta/views/new_playlist.py index de2f144f..a00fcb8b 100644 --- a/telemeta/views/new_playlist.py +++ b/telemeta/views/new_playlist.py @@ -14,7 +14,7 @@ class NewPlaylistView(object): itemlist.append(MediaItem.objects.all().get(id=itemid)) context = RequestContext(request, { 'selected_items_list': itemlist, - 'existing_playlists': Playlist.objects.all()}) + 'existing_playlists': Playlist.objects.all().filter(author=request.user)}) return HttpResponse(template_name.render(context)) def addToPlaylist(self, request): @@ -33,7 +33,7 @@ class NewPlaylistView(object): resource.save() context = RequestContext(request, { - 'existing_playlists': idlist}) + 'existing_playlists': request.user.username}) return HttpResponse(template_name.render(context))