forked from ungleich-public/dynamicweb
add datacenterlight tests
This commit is contained in:
parent
a7e130cdae
commit
c30082a995
10 changed files with 659 additions and 24 deletions
|
|
@ -69,7 +69,7 @@ class LoginViewMixin(FormView):
|
|||
|
||||
@cache_control(no_cache=True, must_revalidate=True, no_store=True)
|
||||
def get(self, request, *args, **kwargs):
|
||||
if self.request.user.is_authenticated():
|
||||
if self.request.user.is_authenticated:
|
||||
return HttpResponseRedirect(self.get_success_url())
|
||||
|
||||
return super(LoginViewMixin, self).get(request, *args, **kwargs)
|
||||
|
|
@ -225,7 +225,7 @@ class SSHKeyCreateView(FormView):
|
|||
'form': UserHostingKeyForm(request=self.request),
|
||||
})
|
||||
|
||||
if self.request.user.is_authenticated():
|
||||
if self.request.user.is_authenticated:
|
||||
owner = self.request.user
|
||||
manager = OpenNebulaManager(
|
||||
email=owner.username,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue