Merge branch 'guntherweissenbaeck/issue63'
This commit is contained in:
commit
8c27709802
17 changed files with 199 additions and 4 deletions
11
app/contact/views.py
Normal file
11
app/contact/views.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue