Add logs and block for templates

This commit is contained in:
Retspen
2015-03-03 11:34:09 +02:00
parent 55e93a9087
commit 5960e94da5
35 changed files with 183 additions and 29 deletions

View File

@@ -16,6 +16,9 @@ def interfaces(request, compute_id):
if not request.user.is_authenticated():
return HttpResponseRedirect(reverse('index'))
if not request.user.is_superuser:
return HttpResponseRedirect(reverse('index'))
ifaces_all = []
error_messages = []
compute = Compute.objects.get(id=compute_id)
@@ -60,6 +63,9 @@ def interface(request, compute_id, iface):
if not request.user.is_authenticated():
return HttpResponseRedirect(reverse('index'))
if not request.user.is_superuser:
return HttpResponseRedirect(reverse('index'))
ifaces_all = []
error_messages = []
compute = Compute.objects.get(id=compute_id)