summaryrefslogtreecommitdiff
path: root/ishtar_common/migrations/0083_document_index_external_id.py
blob: 59396288548fcc9523b88e5cbbd25dd683e4e64b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2019-01-18 17:51
from __future__ import unicode_literals

from django.db import migrations


def gen_index(apps, schema_editor):
    from ishtar_common.models import Document
    for doc in Document.objects.all():
        doc._no_move = True
        doc.save()


class Migration(migrations.Migration):

    dependencies = [
        ('ishtar_common', '0082_auto_20190118_1203'),
    ]

    operations = [
        migrations.RunPython(gen_index)
    ]