Code

Opened 7 years ago

Closed 7 years ago

#3757 closed (duplicate)

FormPreview throwing AttributeError?

Reported by: erickt@… Owned by: nobody
Component: contrib.formtools Version: master
Severity: Keywords:
Cc: erickt@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I wanted to play around with this, but it throws an AttributeError. The problem looks to be coming from the self.form.fields in the unused_name function in preview.py. That value only exists in Form instances, but the documentation for FormPreview says it needs a Form class. Should unused_name be changed to use self.form.base_fields?

-e

Attachments (1)

base_fields.diff (508 bytes) - added by mssnlayam@… 7 years ago.
Simple patch

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by mssnlayam@…

Simple patch

comment:1 Changed 7 years ago by mssnlayam@…

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Patch for the change. I think it is correct.

comment:2 Changed 7 years ago by flother

  • Resolution set to duplicate
  • Status changed from new to closed

Marked as duplicate as this was patched in #4330 and fixed in [5293].

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.