#4027: ability to make a copies of model instances
----------------------------+-----------------------------------------------
Reporter: Marek Kubica | Owner: adrian
Status: new | Component: Database wrapper
Version: SVN | Resolution:
Keywords: db, copy | Stage: Accepted
Has_patch: 1 | Needs_docs: 1
Needs_tests: 1 | Needs_better_patch: 1
----------------------------+-----------------------------------------------
Changes (by Marek Kubica <[EMAIL PROTECTED]>):
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
* needs_tests: 0 => 1
* needs_docs: 0 => 1
Comment:
I wrote a first version of the patch: it implements `copy()` as method of
the `Model` class defined in `base.py`. It was tested by a small helper
script - I'm not sure, but it probably needs some unittests, too. As this
was my first patch submitted to Django, I was not sure how to implement it
correctly, so this patch is more of a draft that is free to discussion. If
you have any comments on it - just post, I'll try to improve this patch to
bring it into a stage where it is ready for checkin.
--
Ticket URL: <http://code.djangoproject.com/ticket/4027#comment:5>
Django Code <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
-~----------~----~----~----~------~----~------~--~---