Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 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 3 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 3 years ago by ryandw@…

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 3 years ago by russellm

  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Cleanup/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 Changed 3 years ago by teraom

  • Owner changed from nobody to teraom
  • Status changed from new to assigned

Changed 3 years ago by teraom

comment:4 Changed 3 years ago by teraom

  • Has patch set

comment:5 Changed 3 years ago by julien

  • Triage Stage changed from Accepted to Ready for checkin

comment:6 Changed 3 years ago by timo

  • Resolution set to fixed
  • Status changed from assigned to closed

In [16586]:

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

comment:7 Changed 3 years ago by timo

In [16587]:

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

Backport of r16586 from trunk.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.