1 from django.views.generic import DetailView
2 from .models import Service
5 class SshAuthorizedKeysView(DetailView):
7 template_name = 'services/ssh_authorized_keys.txt'
8 content_type = 'text/plain'
11 obj = super().get_object()
12 if self.request.GET.get('key') != obj.key: