class documentation

class PositiveIntegerRelDbTypeMixin:

Known subclasses: django.db.models.fields.PositiveBigIntegerField, django.db.models.fields.PositiveIntegerField, django.db.models.fields.PositiveSmallIntegerField

View In Hierarchy

Undocumented

Method __init​_subclass__ Undocumented
Method rel​_db​_type No summary
def __init_subclass__(cls, **kwargs):

Undocumented

def rel_db_type(self, connection):
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.