buttons made to work
This commit is contained in:
parent
752e5f53d8
commit
377f82319d
5 changed files with 216 additions and 12 deletions
|
|
@ -244,7 +244,8 @@ class SignupValidatedView(SignupValidateView):
|
|||
lurl=login_url)
|
||||
else:
|
||||
home_url = '<a href="' + \
|
||||
reverse('datacenterlight:index') + '">Data Center Light</a>'
|
||||
reverse('datacenterlight:index') + \
|
||||
'">Data Center Light</a>'
|
||||
message = '{sorry_message} <br />{go_back_to} {hurl}'.format(
|
||||
sorry_message=_("Sorry. Your request is invalid."),
|
||||
go_back_to=_('Go back to'),
|
||||
|
|
@ -821,6 +822,10 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
|||
print(error)
|
||||
raise Http404()
|
||||
|
||||
def get_context_data(self):
|
||||
context = super(VirtualMachineView, self).get_context_data(**kwargs)
|
||||
context['order'] = HostingOrder.objects.get(vm_id=context['vm'].id)
|
||||
|
||||
def get_success_url(self):
|
||||
final_url = reverse('hosting:virtual_machines')
|
||||
return final_url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue