Milan Andric wrote: > I was told in IRC to extend AutomaticManipulator. But I don't really > know what this means in terms of Django/Python code.
Basically you create a manipulator class inherited from an automatic manipulator of a model. It will create all the needed FormFields based on model's fields in `self.fields` list. Then you can: - add your own fields to this list - change existing fields - remove existing fields - overwrite common manipulator methods `flatten_data`, `get_validation_errors`, `save` The main point of such exercises is to get ready-made FormFields if you already have a model defining them. If your form looks like a union of many models or just a custom set of fields this approach won't gain you much. > Does anyone have > an example? To not invent an artificial example could you describe your task in more detail? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---