1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00
webvirtcloud/logs/views.py

21 lines
477 B
Python
Raw Normal View History

2015-03-03 09:34:09 +00:00
from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from logs.models import Logs
def showlogs(request):
2015-03-16 13:46:44 +00:00
"""
:param request:
:return:
"""
if not request.user.is_authenticated():
return HttpResponseRedirect(reverse('index'))
if not request.user.is_superuser:
return HttpResponseRedirect(reverse('index'))
2015-03-03 09:34:09 +00:00
return render(request, 'showlogs.html', locals())