# Path: services/factory.py
# class ServicePhotoFactory(factory.django.DjangoModelFactory):
#     class Meta:
# class ServiceFactory(factory.django.DjangoModelFactory):
#     class Meta:
# class CategoryFactory(factory.django.DjangoModelFactory):
#     class Meta:


from django.db import migrations
from services.factory import categories, CategoryFactory
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-07-29 08:28
from __future__ import unicode_literals



def populate_categories(apps, schema_editor):
    # We can't import the Person model directly as it may be a newer
    # version than this migration expects. We use the historical version.
    Category = apps.get_model('services', 'Category')
    Category.objects.all().delete()
    for i in range(len(categories)):

# Path: services/factory.py
# class ServicePhotoFactory(factory.django.DjangoModelFactory):
#     class Meta:
# class ServiceFactory(factory.django.DjangoModelFactory):
#     class Meta:
# class CategoryFactory(factory.django.DjangoModelFactory):
#     class Meta:


# Path: services/migrations/0011_populate_categories.py
from django.db import migrations
from services.factory import categories, CategoryFactory

# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-07-29 08:28
from __future__ import unicode_literals



def populate_categories(apps, schema_editor):
    # We can't import the Person model directly as it may be a newer
    # version than this migration expects. We use the historical version.
    Category = apps.get_model('services', 'Category')
    Category.objects.all().delete()
    for i in range(len(categories)):

        CategoryFactory(name=categories[i], name_es=categories[i], order=i)