Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't call controller.form_fields() unnecessarily.

  • Loading branch information...
commit 74c49ed4e4a23f45b1e17d01d2d1ee79f676db58 1 parent 5261da3
@davidblewett davidblewett authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.