#3148: Add getters and setters to model fields
---------------------------------------------------+------------------------
Reporter: [email protected] | Owner: Gulopine
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 1 | Needs_tests: 0
Needs_better_patch: 1 |
---------------------------------------------------+------------------------
Comment (by Alex):
The reason you aren't seeing FileField/RelatedFields working right now is
that they provide their own descriptor, which overwrites yours I imagine.
This is why Gulopine and I discussed integrating the descriptor into the
Field itself (and only conditionally attaching it to the class) and then
integrating the existing descriptors for Files and related objects into
the class itself so everything works together correctly. You can find our
discussion of this here: http://botland.oebfare.com/logger/django-
dev/2009/12/6/1/#22:41-1918558 (extends onto the next page).
--
Ticket URL: <http://code.djangoproject.com/ticket/3148#comment:31>
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.