class documentation

class AutoFieldMeta(type):

View In Hierarchy

Metaclass to maintain backward inheritance compatibility for AutoField.

It is intended that AutoFieldMixin become public API when it is possible to create a non-integer automatically-generated field using column defaults stored in the database.

In many areas Django also relies on using isinstance() to check for an automatically-generated field as a subclass of AutoField. A new flag needs to be implemented on Field to be used instead.

When these issues have been addressed, this metaclass could be used to deprecate inheritance from AutoField and use of isinstance() with AutoField for detecting automatically-generated fields.

Method __instancecheck__ Undocumented
Method __subclasscheck__ Undocumented
Property ​_subclasses Undocumented
def __instancecheck__(self, instance):

Undocumented

def __subclasscheck__(self, subclass):

Undocumented

@property
_subclasses =

Undocumented