add migrations

This commit is contained in:
Thomas Steen Rasmussen 2016-07-12 22:38:59 +02:00
parent 3ce6b70e99
commit 1d65ddeca6
2 changed files with 97 additions and 0 deletions

View file

@ -0,0 +1,77 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-07-12 20:36
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):
dependencies = [
('camps', '0005_auto_20160510_2011'),
('shop', '0026_order_refunded'),
]
operations = [
migrations.CreateModel(
name='CustomOrder',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('text', models.TextField()),
('amount', models.IntegerField(help_text='Amount of this custom order (in DKK, including VAT).')),
('paid', models.BooleanField(default=False, help_text='Whether this custom order has been paid.', verbose_name='Paid?')),
('camp', models.ForeignKey(help_text='The camp this custom order is for.', on_delete=django.db.models.deletion.CASCADE, to='camps.Camp', verbose_name='Camp')),
],
options={
'abstract': False,
},
),
migrations.AlterModelOptions(
name='creditnote',
options={'ordering': ['-created']},
),
migrations.AlterField(
model_name='creditnote',
name='paid',
field=models.BooleanField(default=False, help_text='Whether the amount in this creditnote has been paid back to the customer.', verbose_name='Paid?'),
),
migrations.AlterField(
model_name='invoice',
name='order',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='shop.Order'),
),
migrations.AlterField(
model_name='order',
name='camp',
field=models.ForeignKey(help_text='The camp this shop order is for.', on_delete=django.db.models.deletion.CASCADE, to='camps.Camp', verbose_name='Camp'),
),
migrations.AlterField(
model_name='order',
name='open',
field=models.NullBooleanField(default=True, help_text='Whether this shop order is open or not. "None" means closed.', verbose_name='Open?'),
),
migrations.AlterField(
model_name='order',
name='paid',
field=models.BooleanField(default=False, help_text='Whether this shop order has been paid.', verbose_name='Paid?'),
),
migrations.AlterField(
model_name='order',
name='user',
field=models.ForeignKey(help_text='The user this shop order belongs to.', on_delete=django.db.models.deletion.CASCADE, related_name='orders', to=settings.AUTH_USER_MODEL, verbose_name='User'),
),
migrations.AlterField(
model_name='product',
name='price',
field=models.IntegerField(help_text='Price of the product (in DKK, including VAT).'),
),
migrations.AddField(
model_name='invoice',
name='customorder',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='shop.CustomOrder'),
),
]

View file

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-07-12 20:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('villages', '0004_village_deleted'),
]
operations = [
migrations.AlterField(
model_name='village',
name='description',
field=models.TextField(help_text='A descriptive text about your village. Markdown is supported.'),
),
]