Add delete ssh key modal

This commit is contained in:
modulos 2017-06-03 13:33:05 +02:00
commit ab29b138c3
5 changed files with 47 additions and 3 deletions

View file

@ -288,6 +288,11 @@ class MarkAsReadNotificationView(LoginRequiredMixin, UpdateView):
return HttpResponseRedirect(reverse('hosting:notifications'))
class SSHKeyDeleteView(LoginRequiredMixin, DeleteView):
login_url = reverse_lazy('hosting:login')
success_url = reverse_lazy('hosting:key-pair')
model = UserHostingKey
class GenerateVMSSHKeysView(LoginRequiredMixin, FormView):
form_class = UserHostingKeyForm
model = UserHostingKey