fnp
/
cas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrades
[cas.git]
/
src
/
services
/
views.py
diff --git
a/src/services/views.py
b/src/services/views.py
index
f599592
..
f96dd0b
100644
(file)
--- a/
src/services/views.py
+++ b/
src/services/views.py
@@
-1,4
+1,4
@@
-from django.views.generic import DetailView
+from django.views.generic import DetailView
, ListView
from .models import Service
from .models import Service
@@
-13,3
+13,12
@@
class SshAuthorizedKeysView(DetailView):
obj = None
return obj
obj = None
return obj
+
+class ServicesView(ListView):
+ def get_queryset(self):
+ return Service.for_user(self.request.user)
+
+
+class ServiceDetail(DetailView):
+ def get_queryset(self):
+ return Service.for_user(self.request.user)