mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 21:37:49 -05:00
slowly looking somewhat decently
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user