#4027: ability to make a copies of model instances
------------------------------------+---------------------------------------
Reporter: Marek Kubica | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: SVN
Resolution: | Keywords: db, copy
Stage: Accepted | Has_patch: 0
Needs_docs: 1 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Comment (by forest):
Hi Malcolm,
It sounds like your suggestion is to manually copy each field from the old
instance to the new one. Why not provide a method to automate this?
Also, my patch implements recursion (deep copying). This is not a very
straight-forward thing to do, so it seems like having one implementation
that works in Django core would be useful.
I realize my patch does more than what the ticket reporter was initially
looking for. Would you prefer that I create a new ticket to cover this
additional functionality? I personally do need support for deep copying.
Thanks,
Forest
--
Ticket URL: <http://code.djangoproject.com/ticket/4027#comment:15>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.