forked from uncloud/uncloud
Remove old opennebula view, remove vmid field
This commit is contained in:
parent
5d840de55c
commit
cc2efa5c14
3 changed files with 18 additions and 2 deletions
|
@ -72,7 +72,6 @@ router.register(r'admin/payment', payviews.AdminPaymentViewSet, basename='admin/
|
|||
router.register(r'admin/order', payviews.AdminOrderViewSet, basename='admin/order')
|
||||
router.register(r'admin/vmhost', vmviews.VMHostViewSet)
|
||||
router.register(r'admin/opennebula', oneviews.VMViewSet, basename='opennebula')
|
||||
router.register(r'admin/opennebula_raw', oneviews.RawVMViewSet, basename='opennebula_raw')
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
|
|
17
uncloud/uncloud_vm/migrations/0004_remove_vmproduct_vmid.py
Normal file
17
uncloud/uncloud_vm/migrations/0004_remove_vmproduct_vmid.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Generated by Django 3.0.3 on 2020-03-17 14:40
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('uncloud_vm', '0003_remove_vmhost_vms'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='vmproduct',
|
||||
name='vmid',
|
||||
),
|
||||
]
|
|
@ -64,7 +64,7 @@ class VMProduct(Product):
|
|||
name = models.CharField(max_length=32, blank=True, null=True)
|
||||
cores = models.IntegerField()
|
||||
ram_in_gb = models.FloatField()
|
||||
vmid = models.IntegerField(null=True)
|
||||
|
||||
|
||||
def recurring_price(self, recurring_period=RecurringPeriod.PER_MONTH):
|
||||
# TODO: move magic numbers in variables
|
||||
|
|
Loading…
Reference in a new issue