Use "from django import forms" in forms api examples
It's more common to define forms using a style like:
from django import forms
class PersonForm(forms.Form):
first_name = forms.CharField()
than from django.forms import Form, CharField
.
Change History
(5)
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Component: |
Uncategorized → Documentation
|
Description: |
modified (diff)
|
Summary: |
Small clean up on forms api documentation → Use "from django import forms" in forms api examples
|
Triage Stage: |
Unreviewed → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
PR https://github.com/django/django/pull/7407