Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#16513 closed Cleanup/optimization (fixed)

import missing in code sample?

Reported by: anonymous Owned by: teraom
Component: Documentation Version: 1.3
Severity: Normal Keywords: forms, import
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Code samples at https://docs.djangoproject.com/en/dev/topics/forms/modelforms/ look like we need to import forms from somewhere. I'm getting "name forms is not defined". Maybe a missing import in the code samples?

Attachments (1)

modelforms-example-16513.diff (505 bytes ) - added by teraom 13 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by ryandw@…, 13 years ago

comment:2 by Russell Keith-Magee, 13 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

Refining the exact problem -- most of the examples are ok, because they're dealing with ModelForm; however, the full example uses forms.

comment:3 by teraom, 13 years ago

Owner: changed from nobody to teraom
Status: newassigned

by teraom, 13 years ago

comment:4 by teraom, 13 years ago

Has patch: set

comment:5 by Julien Phalip, 13 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by Tim Graham, 13 years ago

Resolution: fixed
Status: assignedclosed

In [16586]:

Fixed #16513 - Add forms import to example; thanks teraom.

comment:7 by Tim Graham, 13 years ago

In [16587]:

[1.3.X] Fixed #16513 - Add forms import to example; thanks teraom.

Backport of r16586 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top