#20890 closed Uncategorized (fixed)
Missing View import on a Class Based View Introduction documentation example
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.5 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
There's a missing import on a Class Based Views introduction documentation example
The diff is
diff --git a/docs/topics/class-based-views/intro.txt b/docs/topics/class-based-views/intro.txt index a65b887..eb5f32b 100644 --- a/docs/topics/class-based-views/intro.txt +++ b/docs/topics/class-based-views/intro.txt @@ -196,6 +196,7 @@ A basic function-based view that handles forms may look something like this:: A similar class-based view might look like:: + from django.views.generic.base import View from django.http import HttpResponseRedirect from django.shortcuts import render
I've made a pull request on https://github.com/django/django/pull/1462
Note:
See TracTickets
for help on using tickets.
In ab680725bfb2f0d79cff26331b30a3d583c55a80: