Skip to content

Commit

Permalink
Correct initialization of the instance properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoalejo committed Feb 10, 2013
1 parent 8ffd5b6 commit eaa20fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ngforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
class Form(object):
field_values = {}

form_name = 'f'
submit_func = 'submit'
try_submit_func = ''
def __init__(self, form_name='f', submit_func='submit', try_submit_func=''):
self.form_name = form_name
self.submit_func = submit_func
self.try_submit_func = try_submit_func

def build(self):
fields = ''.join([f.build(self) for f in self.fields])
Expand Down

0 comments on commit eaa20fe

Please sign in to comment.