Skip to content
Browse files

Don't call controller.form_fields() unnecessarily.

  • Loading branch information...
1 parent 5261da3 commit 74c49ed4e4a23f45b1e17d01d2d1ee79f676db58 @davidblewett davidblewett committed Jan 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pyramid_formish/zcml.py
View
2 pyramid_formish/zcml.py
@@ -174,7 +174,7 @@ def form_from_controller(controller, form_id, actions=(), method='POST'):
form_schema = schemaish.Structure()
form_fields = controller.form_fields()
- for fieldname, field in controller.form_fields():
+ for fieldname, field in form_fields:
form_schema.add(fieldname, field)
form = Form(form_schema, name=form_id, add_default_action=False,
method=method)

0 comments on commit 74c49ed

Please sign in to comment.
Something went wrong with that request. Please try again.