class documentation

Undocumented

Method __init_subclass__ Undocumented
Method rel_db_type Return the data type that a related field pointing to this field should use. In most cases, a foreign key pointing to a positive integer primary key will have an integer column data type but some databases (e...
def __init_subclass__(cls, **kwargs): (source)

Undocumented

def rel_db_type(self, connection): (source)

Return the data type that a related field pointing to this field should use. In most cases, a foreign key pointing to a positive integer primary key will have an integer column data type but some databases (e.g. MySQL) have an unsigned integer type. In that case (related_fields_match_type=True), the primary key should return its db_type.