mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Refs #12990 -- Removed django.contrib.postgres.forms.JSONField per deprecation timeline.
This commit is contained in:
parent
8fdb5a656a
commit
2dd6a83d2d
5 changed files with 2 additions and 54 deletions
|
@ -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()
|
Loading…
Add table
Add a link
Reference in a new issue