healthchecks/hc/front/views.py
2015-06-11 23:44:49 +03:00

16 lines
328 B
Python

from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from hc.checks.models import Canary
@login_required
def checks(request):
canaries = Canary.objects.filter(user=request.user)
ctx = {
"canaries": canaries
}
return render(request, "checks/index.html", ctx)