Fixes #63
This commit is contained in:
Gunther Weissenbaeck 2023-10-16 21:05:44 +02:00
parent a6833026c0
commit d651e03b12
18 changed files with 196 additions and 58 deletions

10
app/contact/views.py Normal file
View file

@ -0,0 +1,10 @@
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from .models import Contact
@login_required(login_url="account_login")
def contact_all(request):
contacts = Contact.objects.all()
context = {"contacts": contacts}
return render(request, "contact/contact_all.html", context)