fnp
/
cas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update
[cas.git]
/
src
/
services
/
views.py
diff --git
a/src/services/views.py
b/src/services/views.py
index
f96dd0b
..
c2c4a06
100644
(file)
--- a/
src/services/views.py
+++ b/
src/services/views.py
@@
-1,3
+1,4
@@
+from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import DetailView, ListView
from .models import Service
from django.views.generic import DetailView, ListView
from .models import Service
@@
-14,11
+15,11
@@
class SshAuthorizedKeysView(DetailView):
return obj
return obj
-class ServicesView(ListView):
+class ServicesView(L
oginRequiredMixin, L
istView):
def get_queryset(self):
return Service.for_user(self.request.user)
def get_queryset(self):
return Service.for_user(self.request.user)
-class ServiceDetail(DetailView):
+class ServiceDetail(
LoginRequiredMixin,
DetailView):
def get_queryset(self):
return Service.for_user(self.request.user)
def get_queryset(self):
return Service.for_user(self.request.user)