# -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-11-29 16:27
from __future__ import unicode_literals

from django.db import migrations


def copy_date_joined_to_created(apps, schema_editor):
    User = apps.get_model("user", "User")
    for user in User.objects.all():
        user.created = user.date_joined
        user.save()


class Migration(migrations.Migration):

    dependencies = [
        ('user', '0003_auto_20161129_1506'),
    ]

    operations = [
        migrations.RunPython(copy_date_joined_to_created),
    ]
