# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-24 13:06
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default=None, max_length=25)),
                ('subcategory', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='classifieds.Category')),
            ],
        ),
        migrations.CreateModel(
            name='Listing',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=50)),
                ('price', models.DecimalField(decimal_places=2, max_digits=15)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('body', models.TextField()),
                ('photo', models.ImageField(blank=True, null=True, upload_to='profile_photos')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='classifieds.Category')),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
        ),
        migrations.CreateModel(
            name='Region',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('location', models.CharField(max_length=50)),
            ],
        ),
        migrations.AddField(
            model_name='profile',
            name='location',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='classifieds.Region'),
        ),
        migrations.AddField(
            model_name='profile',
            name='user',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='listing',
            name='location',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='classifieds.Region'),
        ),
    ]

ae3b7f4de86ac0a22132e6d4e28940bfa486489d
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Category', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('name', models.CharField(default=None,
        max_length=25)), ('subcategory', models.ForeignKey(on_delete=django
        .db.models.deletion.CASCADE, to='classifieds.Category'))]),
        migrations.CreateModel(name='Listing', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('title', models.CharField(max_length=50)), (
        'price', models.DecimalField(decimal_places=2, max_digits=15)), (
        'created', models.DateTimeField(auto_now_add=True)), ('body',
        models.TextField()), ('photo', models.ImageField(blank=True, null=
        True, upload_to='profile_photos')), ('category', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to=
        'classifieds.Category'))]), migrations.CreateModel(name='Profile',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID'))]), migrations.CreateModel(name
        ='Region', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('location',
        models.CharField(max_length=50))]), migrations.AddField(model_name=
        'profile', name='location', field=models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, to='classifieds.Region')),
        migrations.AddField(model_name='profile', name='user', field=models
        .OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=
        settings.AUTH_USER_MODEL)), migrations.AddField(model_name=
        'listing', name='location', field=models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, to='classifieds.Region'))]

from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Category', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('name', models.CharField(default=None,
        max_length=25)), ('subcategory', models.ForeignKey(on_delete=django
        .db.models.deletion.CASCADE, to='classifieds.Category'))]),
        migrations.CreateModel(name='Listing', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('title', models.CharField(max_length=50)), (
        'price', models.DecimalField(decimal_places=2, max_digits=15)), (
        'created', models.DateTimeField(auto_now_add=True)), ('body',
        models.TextField()), ('photo', models.ImageField(blank=True, null=
        True, upload_to='profile_photos')), ('category', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to=
        'classifieds.Category'))]), migrations.CreateModel(name='Profile',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID'))]), migrations.CreateModel(name
        ='Region', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('location',
        models.CharField(max_length=50))]), migrations.AddField(model_name=
        'profile', name='location', field=models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, to='classifieds.Region')),
        migrations.AddField(model_name='profile', name='user', field=models
        .OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=
        settings.AUTH_USER_MODEL)), migrations.AddField(model_name=
        'listing', name='location', field=models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, to='classifieds.Region'))]

# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-24 13:06
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default=None, max_length=25)),
                ('subcategory', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='classifieds.Category')),
            ],
        ),
        migrations.CreateModel(
            name='Listing',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=50)),
                ('price', models.DecimalField(decimal_places=2, max_digits=15)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('body', models.TextField()),
                ('photo', models.ImageField(blank=True, null=True, upload_to='profile_photos')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='classifieds.Category')),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
        ),
        migrations.CreateModel(
            name='Region',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('location', models.CharField(max_length=50)),
            ],
        ),
        migrations.AddField(
            model_name='profile',
            name='location',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='classifieds.Region'),
        ),
        migrations.AddField(
            model_name='profile',
            name='user',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='listing',
            name='location',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='classifieds.Region'),
        ),
    ]
