diff --git a/contest/views.py b/contest/views.py index cad2dc3..f226b95 100644 --- a/contest/views.py +++ b/contest/views.py @@ -29,8 +29,9 @@ def contestIndex(request): #messages.success(request, "Great Success") qsoform = QSOForm(request.user) contest = Contest.objects.get(id=1) + qrgs = Frequency.objects.filter(band__contest=contest).order_by("channel") - return render(request, 'contest/index.html', {"qsoform": qsoform, "contest": contest}) + return render(request, 'contest/index.html', {"qsoform": qsoform, "contest": contest, "qrgs": qrgs}) @login_required def log(request): diff --git a/templates/base.html b/templates/base.html index 2d1f27e..77ec846 100644 --- a/templates/base.html +++ b/templates/base.html @@ -45,7 +45,7 @@
+ Welcome to {{ contest.name }}! +
+We might be laid back people here at {{ contest.name }}, but we have some rules!
+The QRG-changing is a serious thing. Also there is other stuff. But + maybe it's funnier if you find that out by yourself. And we punish you for not knowing. Such + is live. +
+- Welcome to {{ contest.name }}! -
-We might be laid back people here at {{ contest.name }}, but we have some rules!
-The QRG-changing is a serious thing. Also there is other stuff. But - maybe it's funnier if you find that out by yourself. And we punish you for not knowing. Such - is live. -
-The following frequencies may be used in this contest
-Channel | -Band | -QRG | -Note | -
---|---|---|---|
{{ qrg.channel }} | -{{ qrg.band }} | -{{ qrg.qrg }} | -{{ qrg.note }} | -
The following frequencies may be used in this contest
+Channel | +Band | +QRG | +Note | +
---|---|---|---|
{{ qrg.channel }} | +{{ qrg.band }} | +{{ qrg.qrg }} | +{{ qrg.note }} | +