~turminal/django

ed4e2d010a7fda516863aa23e0f15729d9461377 — Bor Grošelj Simić 1 year, 10 months ago 23563fc master
some kind of low level inheritance hack

from: https://stackoverflow.com/a/65880079
1 files changed, 7 insertions(+), 1 deletions(-)

M django/db/models/base.py
M django/db/models/base.py => django/db/models/base.py +7 -1
@@ 79,7 79,13 @@ class ModelBase(type):

        # Create the class.
        module = attrs.pop('__module__')
        new_class = super_new(cls, name, bases, {'__module__': module})

        new_attrs = {'__module__': module}
        classcell = attrs.pop('__classcell__', None)
        if classcell is not None:
            new_attrs['__classcell__'] = classcell
        new_class = super_new(cls, name, bases, new_attrs)

        attr_meta = attrs.pop('Meta', None)
        abstract = getattr(attr_meta, 'abstract', False)
        if not attr_meta: