Merge branch 'guntherweissenbaeck/issue63'

This commit is contained in:
Gunther Weissenbaeck 2023-10-16 21:57:59 +02:00
commit 8c27709802
17 changed files with 199 additions and 4 deletions

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

@ -0,0 +1,11 @@
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)