#5989: django.db.models.fields.subclassing.Creator.__get__() returns the same
value for all instances
-----------------------------------------------------+----------------------
Reporter: flupke | Owner:
nobody
Status: new | Component:
Database wrapper
Version: SVN | Resolution:
Keywords: subclassing SubfieldBase custom field | Stage:
Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-----------------------------------------------------+----------------------
Changes (by flupke):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Made a better version of the patch storing the to_python() value in the
instance's __dict__, this way it gets destroyed with the instance without
the need of a __del__ method in Creator (thanks to Marty Alchin for
explaining me that, see http://gulopine.gamemusic.org/2007/11/python-
descriptors-part-2-of-2.html for details).
--
Ticket URL: <http://code.djangoproject.com/ticket/5989#comment:1>
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
-~----------~----~----~----~------~----~------~--~---