#30657: Allow model Fields to override their descriptor
-------------------------------------+-------------------------------------
Reporter: Jon | Owner: nobody
Dufresne |
Type: New | Status: new
feature |
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Right now, a `Field` is assigned to the model instance attribute using the
`DeferredAttribute` descriptor class.
https://github.com/django/django/blob/d89053585e11e869efcc9debb1c311b47b5e20ea/django/db/models/fields/__init__.py#L741
As discussed in [https://github.com/django/django/pull/11587 PR#11587], it
would be useful to third party libraries and internally if this descriptor
class could be customized to allow for custom behavior.
--
Ticket URL: <https://code.djangoproject.com/ticket/30657>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.ae9695f24413ff0c7e5ed5a25ec1d7c3%40djangoproject.com.