Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Commit

Permalink
Merge pull request #69 from lambdalisue/issue66
Browse files Browse the repository at this point in the history
Issue66
  • Loading branch information
lambdalisue committed Aug 6, 2016
2 parents 73abc92 + ae2f2ef commit 179f5f4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/registration/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ class Migration(migrations.Migration):
]

operations = [
migrations.CreateModel(
name='DefaultRegistrationSupplement',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, primary_key=True, auto_created=True)),
('remarks', models.TextField(verbose_name='remarks')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='RegistrationProfile',
fields=[
Expand All @@ -37,10 +27,4 @@ class Migration(migrations.Migration):
},
bases=(models.Model,),
),
migrations.AddField(
model_name='defaultregistrationsupplement',
name='registration_profile',
field=models.OneToOneField(editable=False, related_name='_registration_defaultregistrationsupplement_supplement', verbose_name='registration profile', to='registration.RegistrationProfile'),
preserve_default=True,
),
]
33 changes: 33 additions & 0 deletions src/registration/migrations/0002_default_supplement.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

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


class Migration(migrations.Migration):
dependencies = [
('registration', '0001_initial'),
]
operations = []

if settings.REGISTRATION_SUPPLEMENT_CLASS == 'registration.supplements.default.models.DefaultRegistrationSupplement':
operations += [
migrations.CreateModel(
name='DefaultRegistrationSupplement',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, primary_key=True, auto_created=True)),
('remarks', models.TextField(verbose_name='remarks')),
],
options={
},
bases=(models.Model,),
),
migrations.AddField(
model_name='defaultregistrationsupplement',
name='registration_profile',
field=models.OneToOneField(editable=False, related_name='_registration_defaultregistrationsupplement_supplement', verbose_name='registration profile', to='registration.RegistrationProfile'),
preserve_default=True,
),
]

0 comments on commit 179f5f4

Please sign in to comment.