If your custom manipulator is for creating a new instance of the model,
just have save() create on and return it.

When I am writing a custom change manipulator, I either pass the
instance being changed to the __init__ method and save it as
self.model_name or pass it to the save() method and use it instead of
creating a new one, depending on the situation.

I don't know if that's the standard solution, but it seems to work.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to