Adding migration for creating search mapping.

This commit is contained in:
Samuel Clay 2014-04-16 15:32:00 -07:00
parent 428fba705b
commit 7c85e08830
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from apps.search.models import SearchStory
class Migration(DataMigration):
def forwards(self, orm):
SearchStory.create_elasticsearch_mapping()
def backwards(self, orm):
"Write your backwards methods here."
models = {
}
complete_apps = ['search']
symmetrical = True

View file