<filename>dtrans/core/migrations/0004_revisions.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import django.utils.timezone
from django.conf import settings
import model_utils.fields


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('core', '0003_designs'),
    ]

    operations = [
        migrations.CreateModel(
            name='Revisions',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, verbose_name='created', editable=False)),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, verbose_name='modified', editable=False)),
                ('noloadloss', models.DecimalField(max_digits=20, decimal_places=3)),
                ('loadloss', models.DecimalField(max_digits=20, decimal_places=3)),
                ('impedance', models.DecimalField(max_digits=20, decimal_places=3)),
                ('costing', models.DecimalField(max_digits=20, decimal_places=3)),
                ('designdata', models.TextField()),
                ('designid', models.ForeignKey(related_name=b'design_id', to='core.Designs')),
                ('revisionuser', models.ForeignKey(related_name=b'revision_user', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
            bases=(models.Model,),
        ),
    ]

<filename>dtrans/core/migrations/0004_revisions.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import django.utils.timezone
from django.conf import settings
import model_utils.fields


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('core', '0003_designs'),
    ]

    operations = [
        migrations.CreateModel(
            name='Revisions',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, verbose_name='created', editable=False)),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, verbose_name='modified', editable=False)),
                ('noloadloss', models.DecimalField(max_digits=20, decimal_places=3)),
                ('loadloss', models.DecimalField(max_digits=20, decimal_places=3)),
                ('impedance', models.DecimalField(max_digits=20, decimal_places=3)),
                ('costing', models.DecimalField(max_digits=20, decimal_places=3)),
                ('designdata', models.TextField()),
                ('designid', models.ForeignKey(related_name=b'design_id', to='core.Designs')),
                ('revisionuser', models.ForeignKey(related_name=b'revision_user', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
            bases=(models.Model,),
        ),
    ]

# -*- coding: utf-8 -*-