From a07853b129fed662489a9d917ca3ec9b0cd13948 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Tue, 20 Oct 2020 08:39:00 +0200 Subject: [PATCH] one more step towards working links in IF Mail --- input/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/input/views.py b/input/views.py index 3942412..fba4f90 100644 --- a/input/views.py +++ b/input/views.py @@ -10,11 +10,11 @@ from django.template import Context from .forms import ProjectForm, VolunteerForm, LibraryForm, IFGForm from .models import Project, TYPE_CHOICES -def authorize(request): - print('AUTHORIZE!') +def authorize(request, choice, pk): + return HttpResponse(f"AUTHORIZE! choice: {choice}, pk: {pk}") -def deny(request): - print('DENY!') +def deny(request, choice, pk): + return HttpResponse(f"DENY! choice: {choice}, pk: {pk}") def project(request): # return HttpResponse("Hello, world. You're at the input form")