class documentation
class PositiveIntegerRelDbTypeMixin: (source)
Known subclasses: django.db.models.fields.PositiveBigIntegerField
, django.db.models.fields.PositiveIntegerField
, django.db.models.fields.PositiveSmallIntegerField
Undocumented
Method | __init |
Undocumented |
Method | rel |
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... |
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.