﻿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
19937	Small bug in a documentation code example (Introduction to Class-based views)	anonymous	nobody	"The page at https://docs.djangoproject.com/en/dev/topics/class-based-views/intro/ says:

> 
> The first is the standard Python way of subclassing and overriding attributes and
> methods in the subclass. So that if your parent class had an attribute greeting
> like this:
>
>   from django.http import HttpResponse
>   from django.views.base import View
> 
>   class GreetingView(View):
>       greeting = ""Good Day""
>
>       def get(self, request):
>           return HttpResponse(self.greeting)
>   
>  
> You can override that in a subclass:
> 
>   class MorningGreetingView(MyView):
>       greeting = ""Morning to ya""
> 

The superclass of the last definition is wrong. Correct definition would be:

{{{#!python
class MorningGreetingView(GreetingView):
    greeting = ""Morning to ya""
}}}"	Bug	closed	Documentation	dev	Normal	fixed			Unreviewed	0	0	0	0	0	0
