class ModelBase

from django.db.models.base import ModelBase
Metaclass for all models.

Ancestors (MRO)

  1. builtins.object
  2. builtins.type
  3. django.db.models.base.ModelBase
def add_to_class(cls, name, value)
django.db.models.base.ModelBase
    def add_to_class(cls, name, value):
        if _has_contribute_to_class(value):
            value.contribute_to_class(cls, name)
        else:
            setattr(cls, name, value)
def mro(self)
builtins.type
Return a type's method resolution order.