Opened 10 years ago

Closed 9 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:


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 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?


Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by mssnlayam@…

Attachment: base_fields.diff added

Simple patch

comment:1 Changed 10 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 9 years ago by flother

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