blob: ebc85efa6f76f33ac07472eb0143ec22cb722ac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import warnings
from django.forms import JSONField as BuiltinJSONField
from django.utils.deprecation import RemovedInDjango40Warning
__all__ = ['JSONField']
class JSONField(BuiltinJSONField):
def __init__(self, *args, **kwargs):
warnings.warn(
'django.contrib.postgres.forms.JSONField is deprecated in favor '
'of django.forms.JSONField.',
RemovedInDjango40Warning, stacklevel=2,
)
super().__init__(*args, **kwargs)
|