Code

Changes between Version 4 and Version 5 of CookBookNewFormsDynamicFields


Ignore:
Timestamp:
01/02/08 11:24:14 (6 years ago)
Author:
gajon
Comment:

Fixed a bug when calling the class' super(); you can't pass self to init

Legend:

Unmodified
Added
Removed
Modified
  • CookBookNewFormsDynamicFields

    v4 v5  
    2222 
    2323    def __init__(self, questions, *args, **kwargs): 
    24         super(Survey, self).__init__(self, *args, **kwargs) 
     24        super(Survey, self).__init__(*args, **kwargs) 
    2525        # now we add each question individually 
    2626        for i, question in enumerate(questions):