#24305: Allow to override abstract model fields
----------------------------------------------+--------------------
Reporter: knbk | Owner: knbk
Type: New feature | Status: new
Component: Database layer (models, ORM) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
Discussion on django-developers: https://groups.google.com/forum/#!topic
/django-developers/6zUfnElOIks
I suggest we allow fields that are only defined on an abstract base class
of a model, to be overridden by models directly inheriting the abstract
class. As fields on an abstract class are python-only, and don't live in
the database yet, they can easily be switched for another field. If you
use abstract models from sources outside your control, or if you reuse an
abstract model multiple times, this allows for some flexibility without
the need to copy the complete abstract class.
--
Ticket URL: <https://code.djangoproject.com/ticket/24305>
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/047.0c306cf7102554daabf7f100bfe1079d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.