Blame view

src/dashboard/views.py 1.14 KB
81847ba2   haribo   Dashboard buttons...
1
2
from django.shortcuts import render, redirect
from django.core import urlresolvers
cae4b343   haribo   deleted conflicti...
3

62229d51   haribo   began dashboard (...
4
def home(request):
62229d51   haribo   began dashboard (...
5
6
7
    return render(request, 'dashboard/home.html')

def users(request):
81847ba2   haribo   Dashboard buttons...
8
9
    url_ = urlresolvers.reverse('admin:auth_user_changelist')
    return redirect(url_)
62229d51   haribo   began dashboard (...
10
11

def alerts(request):
81847ba2   haribo   Dashboard buttons...
12
13
    url_ = urlresolvers.reverse('admin:pyrosapp_alert_changelist')
    return redirect(url_)
62229d51   haribo   began dashboard (...
14
15

def routines(request):
81847ba2   haribo   Dashboard buttons...
16
17
    url_ = urlresolvers.reverse('admin:pyrosapp_request_changelist')
    return redirect(url_)
62229d51   haribo   began dashboard (...
18
19

def weather(request):
81847ba2   haribo   Dashboard buttons...
20
21
    url_ = urlresolvers.reverse('admin:pyrosapp_weatherwatch_changelist')
    return redirect(url_)
62229d51   haribo   began dashboard (...
22
23

def site(request):
81847ba2   haribo   Dashboard buttons...
24
25
    url_ = urlresolvers.reverse('admin:pyrosapp_sitewatch_changelist')
    return redirect(url_)
62229d51   haribo   began dashboard (...
26
27

def devices(request):
81847ba2   haribo   Dashboard buttons...
28
29
    url_ = urlresolvers.reverse('admin:pyrosapp_device_changelist')
    return redirect(url_)
62229d51   haribo   began dashboard (...
30
31
32
33
34

def system(request):
    return render(request, 'dashboard/system.html')

def schedule(request):
81847ba2   haribo   Dashboard buttons...
35
36
    url_ = urlresolvers.reverse('admin:pyrosapp_schedule_changelist')
    return redirect(url_)
62229d51   haribo   began dashboard (...
37
38

def quotas(request):
81847ba2   haribo   Dashboard buttons...
39
40
    url_ = urlresolvers.reverse('admin:pyrosapp_pyrosuser_changelist')
    return redirect(url_)