Skip to content

Commit 3bbc450

Browse files
authored
Revert "Adding support for Postgresql JSONField (#220)"
This reverts commit dc3d89f.
1 parent cb83617 commit 3bbc450

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

django_elasticsearch_dsl/documents.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
LongField,
2222
ShortField,
2323
TextField,
24-
ObjectField)
24+
)
2525
from .search import Search
2626

2727
model_field_class_to_field_class = {
@@ -48,16 +48,8 @@
4848
models.URLField: TextField,
4949
}
5050

51-
try:
52-
from django.contrib.postgres.fields import JSONField
53-
model_field_class_to_field_class[JSONField] = ObjectField
54-
except ImportError:
55-
pass
56-
57-
5851
class DocType(DSLDocument):
5952
_prepared_fields = []
60-
6153
def __init__(self, related_instance_to_ignore=None, **kwargs):
6254
super(DocType, self).__init__(**kwargs)
6355
self._related_instance_to_ignore = related_instance_to_ignore

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
django>=1.9.6
22
elasticsearch-dsl>=7.0.0,<8.0.0
3+

0 commit comments

Comments
 (0)