Renamed 'manage vmss' model names so that we have a nice name
This commit is contained in:
parent
354cb144f7
commit
a427fa8579
2 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ import socket
|
||||||
from oca.exceptions import OpenNebulaException
|
from oca.exceptions import OpenNebulaException
|
||||||
|
|
||||||
from .forms import HostingOrderAdminForm
|
from .forms import HostingOrderAdminForm
|
||||||
from .models import VirtualMachineType, VirtualMachinePlan, HostingOrder, ManageVMs
|
from .models import VirtualMachineType, VirtualMachinePlan, HostingOrder, ManageVM
|
||||||
|
|
||||||
class HostingOrderAdmin(admin.ModelAdmin):
|
class HostingOrderAdmin(admin.ModelAdmin):
|
||||||
# fields = ('slug', 'imdb_link', 'start', 'finish', 'added_by')
|
# fields = ('slug', 'imdb_link', 'start', 'finish', 'added_by')
|
||||||
|
@ -101,7 +101,7 @@ class VirtualMachinePlanAdmin(admin.ModelAdmin):
|
||||||
email.send()
|
email.send()
|
||||||
obj.save()
|
obj.save()
|
||||||
|
|
||||||
class HostingManageVMsAdmin(admin.ModelAdmin):
|
class HostingManageVMAdmin(admin.ModelAdmin):
|
||||||
client = None
|
client = None
|
||||||
def get_urls(self):
|
def get_urls(self):
|
||||||
urls = super().get_urls()
|
urls = super().get_urls()
|
||||||
|
@ -259,4 +259,4 @@ user_logged_in.connect(user_logged_in_callback)
|
||||||
admin.site.register(HostingOrder, HostingOrderAdmin)
|
admin.site.register(HostingOrder, HostingOrderAdmin)
|
||||||
admin.site.register(VirtualMachineType)
|
admin.site.register(VirtualMachineType)
|
||||||
admin.site.register(VirtualMachinePlan, VirtualMachinePlanAdmin)
|
admin.site.register(VirtualMachinePlan, VirtualMachinePlanAdmin)
|
||||||
admin.site.register(ManageVMs, HostingManageVMsAdmin)
|
admin.site.register(ManageVM, HostingManageVMAdmin)
|
||||||
|
|
|
@ -224,7 +224,7 @@ class HostingOrder(AssignPermissionsMixin, models.Model):
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
|
|
||||||
class ManageVMs(models.Model):
|
class ManageVM(models.Model):
|
||||||
#name = models.TextField(blank=True)
|
#name = models.TextField(blank=True)
|
||||||
def has_add_permission(self, request):
|
def has_add_permission(self, request):
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue