bornhack-website/src/shop/migrations/0025_creditnote.py

36 lines
1.4 KiB
Python
Raw Normal View History

2016-06-18 19:04:15 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-06-18 19:02
2017-01-30 11:16:07 +00:00
2016-06-18 19:04:15 +00:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('shop', '0024_auto_20160605_2126'),
]
operations = [
migrations.CreateModel(
name='CreditNote',
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)),
('amount', models.DecimalField(decimal_places=2, max_digits=10)),
('text', models.TextField()),
('pdf', models.FileField(blank=True, null=True, upload_to=b'creditnotes/')),
('paid', models.BooleanField(default=False, help_text='Whether this creditnote has been paid.', verbose_name='Paid?')),
('sent_to_customer', models.BooleanField(default=False)),
('user', models.ForeignKey(help_text='The user this credit note belongs to.', on_delete=django.db.models.deletion.CASCADE, related_name='creditnotes', to=settings.AUTH_USER_MODEL, verbose_name='User')),
],
options={
'abstract': False,
},
),
]