mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #12990 -- Removed django.contrib.postgres.forms.JSONField per deprecation timeline.
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
try:
|
||||
from django.contrib.postgres import forms
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
from django.utils.deprecation import RemovedInDjango40Warning
|
||||
|
||||
from . import PostgreSQLSimpleTestCase
|
||||
|
||||
|
||||
class DeprecationTests(PostgreSQLSimpleTestCase):
|
||||
def test_form_field_deprecation_message(self):
|
||||
msg = (
|
||||
'django.contrib.postgres.forms.JSONField is deprecated in favor '
|
||||
'of django.forms.JSONField.'
|
||||
)
|
||||
with self.assertWarnsMessage(RemovedInDjango40Warning, msg):
|
||||
forms.JSONField()
|
||||
Reference in New Issue
Block a user