#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 blueyed):
FileField/RelatedFields work as before (at least passing tests - I have
not tried it for real) - they are not affected by getter/setter currently
(AFAICS).
My understanding had been that I'm not using a descriptor, but
property/ies instead - I've just read that it's considered to be a
descriptor, too.
The discussion you've linked sounds good, but still I'm not sure where
you're heading.. :)
Therefore, a last patch from me (which does not use property() anymore),
but adds a FieldDescriptor class. There's a lot to fix/straighten for
sure, but just to get this out for discussion.
I'll now wait until Gulopine and others provide some feedback on this.
--
Ticket URL: <http://code.djangoproject.com/ticket/3148#comment:33>
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.