mirror of https://github.com/django/django.git
21e559495b
This reduces duplication by allowing AutoField, BigAutoField and SmallAutoField to inherit from IntegerField, BigIntegerField and SmallIntegerField respectively. Doing so also allows for enabling the max_length warning check and minimum/maximum value validation for auto fields, as well as providing a mixin that can be used for other possible future auto field types such as a theoretical UUIDAutoField. |
||
---|---|---|
.. | ||
4x8.png | ||
8x4.png | ||
__init__.py | ||
models.py | ||
test_autofield.py | ||
test_binaryfield.py | ||
test_booleanfield.py | ||
test_charfield.py | ||
test_datetimefield.py | ||
test_decimalfield.py | ||
test_durationfield.py | ||
test_field_flags.py | ||
test_filefield.py | ||
test_filepathfield.py | ||
test_floatfield.py | ||
test_foreignkey.py | ||
test_genericipaddressfield.py | ||
test_imagefield.py | ||
test_integerfield.py | ||
test_manytomanyfield.py | ||
test_promises.py | ||
test_slugfield.py | ||
test_textfield.py | ||
test_uuid.py | ||
tests.py |