make price a real property of order
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
64780bfc6c
commit
cbd5a08ae7
3 changed files with 68 additions and 17 deletions
23
uncloud_pay/migrations/0004_auto_20200801_1604.py
Normal file
23
uncloud_pay/migrations/0004_auto_20200801_1604.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 3.0.6 on 2020-08-01 16:04
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('uncloud_pay', '0003_auto_20200621_1442'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='order',
|
||||
name='replaced_by',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='replaces',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='replaced_by', to='uncloud_pay.Order'),
|
||||
),
|
||||
]
|
||||
24
uncloud_pay/migrations/0005_auto_20200801_1626.py
Normal file
24
uncloud_pay/migrations/0005_auto_20200801_1626.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Generated by Django 3.0.6 on 2020-08-01 16:26
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('uncloud_pay', '0004_auto_20200801_1604'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='one_time_price',
|
||||
field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10, validators=[django.core.validators.MinValueValidator(0)]),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='recurring_price',
|
||||
field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10, validators=[django.core.validators.MinValueValidator(0)]),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue