forked from uncloud/uncloud
Make recurring_period an Enum, VMProduct a Product, initial wire for
order
This commit is contained in:
parent
1dd3324275
commit
b2fe5014d8
6 changed files with 113 additions and 24 deletions
30
uncloud/uncloud_vm/migrations/0005_auto_20200227_1532.py
Normal file
30
uncloud/uncloud_vm/migrations/0005_auto_20200227_1532.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Generated by Django 3.0.3 on 2020-02-27 15:32
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('uncloud_pay', '0004_auto_20200227_1532'),
|
||||
('uncloud_vm', '0004_vmsnapshotproduct'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='vmproduct',
|
||||
name='order',
|
||||
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, to='uncloud_pay.Order'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='vmproduct',
|
||||
name='status',
|
||||
field=models.CharField(choices=[('pending', 'Pending'), ('being_created', 'Being created'), ('active', 'Active'), ('deleted', 'Deleted')], default='pending', max_length=256),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='vmsnapshotproduct',
|
||||
name='order',
|
||||
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, to='uncloud_pay.Order'),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue