Skip to content

Commit 659ca85

Browse files
committed
Merge pull request #17 from stuross/patch-1
fix deprecation warning in django 1.9
2 parents 9f61f95 + eccd32d commit 659ca85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, model, client):
4545
self.__client = client
4646
self.__set_index(client)
4747

48-
all_fields = model._meta.get_all_field_names()
48+
all_fields = [f.name for f in model._meta.get_fields()]
4949

5050
# Avoid error when there is only one field to index
5151
if isinstance(self.fields, str):

0 commit comments

Comments
 (0)