slowly looking somewhat decently

This commit is contained in:
vabene1111
2021-01-13 03:13:07 +01:00
parent bb43ed203a
commit 6ff0e3b7b3
6 changed files with 166 additions and 28 deletions

View File

@@ -497,4 +497,6 @@ def test(request, pk):
if not settings.DEBUG:
return HttpResponseRedirect(reverse('index'))
return render(request, 'test.html', {'pk': pk})
recipe = Recipe.objects.get(pk=pk)
return render(request, 'test.html', {'recipe': recipe})