Opened 18 years ago

Closed 17 years ago

#3757 closed (duplicate)

FormPreview throwing AttributeError?

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

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@… 18 years ago.
Simple patch

Download all attachments as: .zip

Change History (3)

by mssnlayam@…, 18 years ago

Attachment: base_fields.diff added

Simple patch

comment:1 by mssnlayam@…, 18 years ago

Has patch: set

Patch for the change. I think it is correct.

comment:2 by flother, 17 years ago

Resolution: duplicate
Status: newclosed

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

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