Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Commit

Permalink
Fix elasticutils update errors
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed May 28, 2013
1 parent 5e0a983 commit af13d62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fjord/feedback/models.py
Expand Up @@ -2,7 +2,7 @@

from django.db import models

from elasticutils.contrib.django.models import Indexable
from elasticutils.contrib.django import Indexable
from tower import ugettext_lazy as _

from fjord.base.models import ModelBase
Expand Down
5 changes: 2 additions & 3 deletions fjord/search/index.py
Expand Up @@ -5,8 +5,7 @@
from django.conf import settings
from django.db import reset_queries

from elasticutils.contrib.django import get_es, S
from elasticutils.contrib.django.models import DjangoMappingType
from elasticutils.contrib.django import get_es, S, MappingType
from pyelasticsearch.exceptions import (ConnectionError, Timeout,
ElasticHttpNotFoundError)

Expand Down Expand Up @@ -56,7 +55,7 @@ def get_index():
return '%s-%s' % (settings.ES_INDEX_PREFIX, settings.ES_INDEXES['default'])


class FjordMappingType(DjangoMappingType):
class FjordMappingType(MappingType):
"""DjangoMappingType with correct index."""
@classmethod
def get_index(cls):
Expand Down

0 comments on commit af13d62

Please sign in to comment.