Commit 80902f73 by Őry Máté

one: exclude generated ssh keys from list

parent c408641b
......@@ -197,6 +197,7 @@ store_settings = {
"store_client_key": "/opt/webadmin/cloud/client.key",
"store_client_cert": "/opt/webadmin/cloud/client.crt",
"store_url": "http://localhost:9000",
"store_public": "store.ik.bme.hu",
}
......
......@@ -20,6 +20,7 @@ from django.utils.translation import ugettext_lazy as _
from django.views.decorators.http import *
from django.views.generic import *
from firewall.tasks import *
from cloud.settings import store_settings
from one.models import *
from school.models import *
import django.contrib.auth as auth
......@@ -55,7 +56,8 @@ def home(request):
'groups': request.user.person_set.all()[0].owned_groups.all(),
'semesters': Semester.objects.all(),
'userdetails': details,
'keys': request.user.sshkey_set.exclude(id=generated_public_key.id).all()
'keys': request.user.sshkey_set.exclude(id=generated_public_key.id).all(),
'storeserv': store_settings['store_public'],
}))
@login_required
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment