mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
basic recipe view
This commit is contained in:
@@ -22,7 +22,9 @@ def index(request):
|
||||
@login_required
|
||||
def recipe_view(request, pk):
|
||||
recipe = get_object_or_404(Recipe, pk=pk)
|
||||
return render(request, 'recipe_view.html', {'recipe': recipe})
|
||||
ingredients = RecipeIngredients.objects.filter(recipe=recipe)
|
||||
|
||||
return render(request, 'recipe_view.html', {'recipe': recipe, 'ingredients': ingredients})
|
||||
|
||||
|
||||
def test(request):
|
||||
|
||||
Reference in New Issue
Block a user