Committee model

This commit is contained in:
Elias
2018-03-01 19:28:27 +02:00
parent efe8808e79
commit 780e2d6acb
3 changed files with 37 additions and 7 deletions
+4 -2
View File
@@ -13,7 +13,7 @@ import logging
import requests
from dealer.git import git
from webapp.models import PresetKaehmyRole, CustomKaehmyRole, Official
from webapp.models import PresetKaehmyRole, CustomKaehmyRole, Official, Role
from webapp.models import OhlhafvChallenge, KaehmyForm, TelegramChannel
from webapp.forms import OhlhafvForm, KaehmyForm_Form, KaehmyCommentForm
from webapp.tables import OhlhafvTable, KaehmyExportTable
@@ -146,7 +146,9 @@ def contact_view(request, *args, **kwargs):
"""Render "Contact" page."""
kaikki = Official.objects.all()
context = {"kaikki": kaikki}
roolit = Role.objects.all()
context = {"roolit": roolit, "kaikki": kaikki}
return render(request, "contact.html", context)