0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-06 21:58:48 +00:00
healthchecks_healthchecks/hc/front/views.py
Pēteris Caune c8b24495b9 Renames
2015-06-12 19:33:15 +03:00

15 lines
317 B
Python

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