Fix getting users email and password from the request object
This commit is contained in:
parent
a1a85e6c18
commit
0b99a0cbec
1 changed files with 2 additions and 2 deletions
|
@ -1284,8 +1284,8 @@ class InvoiceDetailView(LoginRequiredMixin, DetailView):
|
||||||
# fallback to get it from the infrastructure
|
# fallback to get it from the infrastructure
|
||||||
try:
|
try:
|
||||||
manager = OpenNebulaManager(
|
manager = OpenNebulaManager(
|
||||||
email=self.request.email,
|
email=self.request.user.email,
|
||||||
password=self.request.password
|
password=self.request.user.password
|
||||||
)
|
)
|
||||||
vm = manager.get_vm(vm_id)
|
vm = manager.get_vm(vm_id)
|
||||||
context['vm'] = VirtualMachineSerializer(vm).data
|
context['vm'] = VirtualMachineSerializer(vm).data
|
||||||
|
|
Loading…
Reference in a new issue