mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
[1.6.x] Fixed #22007 -- Fixed cbv docs - make imports consistent
Thanks to trac user kinjal.dixit for the report.
Backport of d399731bf2
from master.
This commit is contained in:
parent
98070b94a9
commit
4f6ff7ee85
2 changed files with 11 additions and 3 deletions
|
@ -27,6 +27,14 @@ Python style
|
|||
* Use ``InitialCaps`` for class names (or for factory functions that
|
||||
return classes).
|
||||
|
||||
* Use convenience imports whenever available. For example, do this::
|
||||
|
||||
from django.views.generic import View
|
||||
|
||||
Don't do this::
|
||||
|
||||
from django.views.generic.base import View
|
||||
|
||||
* In docstrings, use "action words" such as::
|
||||
|
||||
def foo():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue