mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-04-06 21:58:48 +00:00
15 lines
317 B
Python
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)
|