#3148: Add getters and setters to model fields
-------------------------------------+-------------------------------------
Reporter: jerf@… | Owner:
Type: New feature | Status: closed
Component: Database layer | Version: master
(models, ORM) | Resolution: wontfix
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 1
Has patch: 1 | Patch needs improvement: 1
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by ariel17):
This solution does not work well on templates because they cannot see a
field starting with "_". Also queries cannot be done on this field (for
example, when writing a custom model manager) because referencing the
field "_field" confuses the ORM with field joining.
--
Ticket URL: <https://code.djangoproject.com/ticket/3148#comment:51>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/071.e5ea563f9b7de2d527c179f5b681afd6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.