Changes between Version 10 and Version 11 of NewManipulators
- Timestamp:
- Aug 21, 2006, 6:07:20 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewManipulators
v10 v11 200 200 class CreateManipulator(Manipulator): 201 201 def __init__(self): 202 self.fields = forms.generate_fields(model_cls) 202 self.fields = generate_fields(model_cls) 203 # generate_fields() would need to be built. It creates a list of fields based 204 # on the Model's fields. 203 205 204 206 def save(self, data): … … 209 211 class EditManipulator(Manipulator): 210 212 def __init__(self, object): 211 self.fields = forms.generate_fields(model_cls)213 self.fields = generate_fields(model_cls) 212 214 self.object = object 213 215