Django

Code

Ticket #3757 (closed: duplicate)

Opened 2 years ago

Last modified 1 year ago

FormPreview throwing AttributeError?

Reported by: erickt@dslextreme.com Assigned to: nobody
Milestone: Component: django.contrib.formtools
Version: SVN Keywords:
Cc: erickt@dslextreme.com Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

base_fields.diff (508 bytes) - added by mssnlayam@yahoo.com on 04/18/07 22:03:08.
Simple patch

Change History

04/18/07 22:03:08 changed by mssnlayam@yahoo.com

  • attachment base_fields.diff added.

Simple patch

04/18/07 22:04:07 changed by mssnlayam@yahoo.com

  • needs_better_patch changed.
  • has_patch set to 1.
  • needs_tests changed.
  • needs_docs changed.

Patch for the change. I think it is correct.

09/14/07 16:40:10 changed by flother

  • status changed from new to closed.
  • resolution set to duplicate.

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


Add/Change #3757 (FormPreview throwing AttributeError?)




Change Properties
Action