Skip to content

Commit a252208

Browse files
committed
WIP
1 parent d86b43f commit a252208

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

django_elasticsearch_dsl/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _get_inner_field_data(self, obj, field_value_to_ignore=None):
103103
obj, field_value_to_ignore
104104
)
105105
else:
106-
for name, field in self._doc_class._doc_type.mapping.properties._params.get('properties', {}).items():
106+
for name, field in self._doc_class._doc_type.mapping.properties._params.get('properties', {}).items(): # noqa
107107
if not isinstance(field, DEDField):
108108
continue
109109

example/example/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# SECURITY WARNING: don't run with debug turned on in production!
2323
DEBUG = True
2424

25-
ALLOWED_HOSTS = []
25+
ALLOWED_HOSTS = ['*']
2626

2727
# Application definition
2828

@@ -84,7 +84,7 @@
8484

8585
ELASTICSEARCH_DSL = {
8686
'default': {
87-
'hosts': 'localhost:9200'
87+
'hosts': '192.168.99.100:9200'
8888
},
8989
}
9090

tests/test_fields.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
from mock import Mock, NonCallableMock
77

88
from django_elasticsearch_dsl.exceptions import VariableLookupError
9-
from django_elasticsearch_dsl.fields import (AttachmentField, BooleanField, ByteField, CompletionField, DEDField,
10-
DateField, DoubleField, FileField, FloatField, GeoPointField,
11-
GeoShapeField, IntegerField, IpField, KeywordField, ListField, LongField,
12-
NestedField, ObjectField, ShortField, StringField, TextField)
9+
from django_elasticsearch_dsl.fields import (
10+
AttachmentField, BooleanField, ByteField, CompletionField, DEDField,
11+
DateField, DoubleField, FileField, FloatField, GeoPointField,
12+
GeoShapeField, IntegerField, IpField, KeywordField, ListField, LongField,
13+
NestedField, ObjectField, ShortField, StringField, TextField
14+
)
1315
from tests import ES_MAJOR_VERSION
1416

1517

0 commit comments

Comments
 (0)