From 062ca69d9d20e8f29e5713ea84af155a2f11eded Mon Sep 17 00:00:00 2001 From: Siarhei Puhach Date: Wed, 12 Jul 2017 08:21:43 +0300 Subject: [PATCH] Update views.py --- hosting/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/views.py b/hosting/views.py index c342cdb9..b4b5853c 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -368,7 +368,7 @@ class SSHKeyListView(LoginRequiredMixin, ListView): def render_to_response(self, context, **response_kwargs): if not self.queryset: - return HttpResponseRedirect(reverse('hosting:create_ssh_key')) + return HttpResponseRedirect(reverse('hosting:choice_ssh_keys')) return super(SSHKeyListView, self).render_to_response(context, **response_kwargs)