mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #30987 -- Added models.PositiveBigIntegerField.
This commit is contained in:
committed by
Mariusz Felisiak
parent
aa12cf07c9
commit
555bebe774
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user