﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17510	Typo at https://docs.djangoproject.com/en/1.3/topics/class-based-views/#dynamic-filtering	andrew@…	nobody	"A comma behind the template name in the code blocks


{{{
from django.shortcuts import get_object_or_404
from django.views.generic import ListView
from books.models import Book, Publisher

class PublisherBookListView(ListView):

    context_object_name = ""book_list""
    template_name = ""books/books_by_publisher.html"",

    def get_queryset(self):
        publisher = get_object_or_404(Publisher, name__iexact=self.args[0])
        return Book.objects.filter(publisher=publisher)
}}}


{{{
class PublisherBookListView(ListView):

    context_object_name = ""book_list""
    template_name = ""books/books_by_publisher.html"",

    def get_queryset(self):
        self.publisher = get_object_or_404(Publisher, name__iexact=self.args[0])
        return Book.objects.filter(publisher=self.publisher)

    def get_context_data(self, **kwargs):
        # Call the base implementation first to get a context
        context = super(PublisherBookListView, self).get_context_data(**kwargs)
        # Add in the publisher
        context['publisher'] = self.publisher
        return context
}}}
"	Bug	closed	Documentation	dev	Normal	fixed	typo, documentation, web		Ready for checkin	1	0	0	0	1	0
