# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-18 02:15
from __future__ import unicode_literals

from django.db import models, migrations


def load_data(apps, schema_editor):
    LotType = apps.get_model("lots", "LotType")

    LotType(name="Casa").save()
    LotType(name="Lote").save()


class Migration(migrations.Migration):

    dependencies = [
        ('lots', '0001_initial'),
    ]

    operations = [
        migrations.RunPython(load_data)
    ]

# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-18 02:15
from __future__ import unicode_literals

from django.db import models, migrations

from lots.models import LotType


def load_data(apps, schema_editor):
    LotType = apps.get_model("lots", "LotType")

    LotType(name="Casa").save()
    LotType(name="Lote").save()

def remove_data(apps, schema_editor):
    LotType.objects.all().delete()


class Migration(migrations.Migration):

    dependencies = [
        ('lots', '0001_initial'),
    ]

    operations = [
        migrations.RunPython(load_data, remove_data)
    ]

Add reverse action to importing default lot types
Add reverse action to importing default lot types
