Opened 8 years ago
Last modified 8 years ago
#27361 closed Cleanup/optimization
Use "from django import forms" in forms api examples — at Version 3
Reported by: | Zach Borboa | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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 (3)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
comment:2 by , 8 years ago
Description: | modified (diff) |
---|
comment:3 by , 8 years ago
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 |
Note:
See TracTickets
for help on using tickets.
PR https://github.com/django/django/pull/7407