mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Fixed #30987 -- Added models.PositiveBigIntegerField.
This commit is contained in:
parent
aa12cf07c9
commit
555bebe774
28 changed files with 112 additions and 11 deletions
|
@ -6,8 +6,8 @@ from django.db import IntegrityError, connection, models
|
|||
from django.test import SimpleTestCase, TestCase
|
||||
|
||||
from .models import (
|
||||
BigIntegerModel, IntegerModel, PositiveIntegerModel,
|
||||
PositiveSmallIntegerModel, SmallIntegerModel,
|
||||
BigIntegerModel, IntegerModel, PositiveBigIntegerModel,
|
||||
PositiveIntegerModel, PositiveSmallIntegerModel, SmallIntegerModel,
|
||||
)
|
||||
|
||||
|
||||
|
@ -182,6 +182,11 @@ class PositiveIntegerFieldTests(IntegerFieldTests):
|
|||
p.save()
|
||||
|
||||
|
||||
class PositiveBigIntegerFieldTests(IntegerFieldTests):
|
||||
model = PositiveBigIntegerModel
|
||||
documented_range = (0, 9223372036854775807)
|
||||
|
||||
|
||||
class ValidationTests(SimpleTestCase):
|
||||
|
||||
class Choices(models.IntegerChoices):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue