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 Tim Graham)

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 Zach Borboa, 8 years ago

Description: modified (diff)

comment:2 by Zach Borboa, 8 years ago

Description: modified (diff)

comment:3 by Tim Graham, 8 years ago

Component: UncategorizedDocumentation
Description: modified (diff)
Summary: Small clean up on forms api documentationUse "from django import forms" in forms api examples
Triage Stage: UnreviewedReady for checkin
Note: See TracTickets for help on using tickets.
Back to Top