Skip to content

Commit

Permalink
merge from flaper87
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Paro committed Sep 28, 2010
2 parents edbe436 + 02315b6 commit 79f8302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_elasticsearch/fields.py
Expand Up @@ -64,7 +64,7 @@ def _get(self):
from django.db import connections
elst = connections[self._meta.elst_connection]
if not hasattr(self, att_cache_name) and not getattr(self, att_val_name, None) and getattr(self, att_id_name, None):
# elst = ES('http://127.0.0.1:9200/')
elst = ES('http://127.0.0.1:9200/')
val = elst.get(index, doc_type, id=getattr(self, att_id_name)).get("_source", None)
setattr(self, att_cache_name, val)
setattr(self, att_val_name, val)
Expand Down

0 comments on commit 79f8302

Please sign in to comment.