mirror of
https://github.com/django/django.git
synced 2025-09-01 16:27:45 +00:00
Fixed #28626 -- Dropped support for PostgreSQL 9.3.
Thanks Simon Charette for the introspection changes.
This commit is contained in:
parent
ea7ca5db30
commit
1d8cfa3608
13 changed files with 18 additions and 53 deletions
|
@ -5,7 +5,6 @@ from decimal import Decimal
|
|||
from django.core import exceptions, serializers
|
||||
from django.core.serializers.json import DjangoJSONEncoder
|
||||
from django.forms import CharField, Form, widgets
|
||||
from django.test import skipUnlessDBFeature
|
||||
from django.utils.html import escape
|
||||
|
||||
from . import PostgreSQLTestCase
|
||||
|
@ -18,7 +17,6 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
@skipUnlessDBFeature('has_jsonb_datatype')
|
||||
class TestSaveLoad(PostgreSQLTestCase):
|
||||
def test_null(self):
|
||||
instance = JSONModel()
|
||||
|
@ -92,7 +90,6 @@ class TestSaveLoad(PostgreSQLTestCase):
|
|||
self.assertEqual(loaded.field_custom, obj_after)
|
||||
|
||||
|
||||
@skipUnlessDBFeature('has_jsonb_datatype')
|
||||
class TestQuerying(PostgreSQLTestCase):
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
|
@ -262,7 +259,6 @@ class TestQuerying(PostgreSQLTestCase):
|
|||
self.assertTrue(JSONModel.objects.filter(field__foo__iregex=r'^bAr$').exists())
|
||||
|
||||
|
||||
@skipUnlessDBFeature('has_jsonb_datatype')
|
||||
class TestSerialization(PostgreSQLTestCase):
|
||||
test_data = (
|
||||
'[{"fields": {"field": {"a": "b", "c": null}, "field_custom": null}, '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue