1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 from django.db import models, migrations
5 import getpaid.abstract_mixin
8 class Migration(migrations.Migration):
11 ('funding', '0001_initial'),
15 migrations.CreateModel(
18 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19 ('amount', models.DecimalField(verbose_name='amount', max_digits=20, decimal_places=4)),
20 ('currency', models.CharField(max_length=3, verbose_name='currency')),
21 ('status', models.CharField(default=b'new', max_length=20, verbose_name='status', db_index=True, choices=[(b'new', 'new'), (b'in_progress', 'in progress'), (b'partially_paid', 'partially paid'), (b'paid', 'paid'), (b'failed', 'failed')])),
22 ('backend', models.CharField(max_length=50, verbose_name='backend')),
23 ('created_on', models.DateTimeField(auto_now_add=True, verbose_name='created on', db_index=True)),
24 ('paid_on', models.DateTimeField(default=None, null=True, verbose_name='paid on', db_index=True, blank=True)),
25 ('amount_paid', models.DecimalField(default=0, verbose_name='amount paid', max_digits=20, decimal_places=4)),
26 ('external_id', models.CharField(max_length=64, null=True, verbose_name='external id', blank=True)),
27 ('description', models.CharField(max_length=128, null=True, verbose_name='Description', blank=True)),
28 ('order', models.ForeignKey(related_name=b'payment', to='funding.Funding')),
31 'ordering': ('-created_on',),
32 'verbose_name': 'Payment',
33 'verbose_name_plural': 'Payments',
35 bases=(models.Model, getpaid.abstract_mixin.AbstractMixin),