mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #22007 -- Fixed cbv docs - make imports consistent
Thanks to trac user kinjal.dixit for the report.
This commit is contained in:
committed by
Baptiste Mispelon
parent
926e18d7d1
commit
d399731bf2
@@ -30,6 +30,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():
|
||||
|
||||
Reference in New Issue
Block a user