Skip to content

Commit

Permalink
Separa views de receitas
Browse files Browse the repository at this point in the history
  • Loading branch information
brnocesar committed Jan 20, 2021
1 parent c7bbedf commit f0d35cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/receitas/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def index(request):

receitas = receitas.order_by('-data_criacao')

return render(request, 'index.html', {'receitas': receitas})
return render(request, 'receitas/index.html', {'receitas': receitas})

def receita(request, receita_id):
return render(request, 'receita.html', {'receita': get_object_or_404(Receita, pk=receita_id)})
return render(request, 'receitas/receita.html', {'receita': get_object_or_404(Receita, pk=receita_id)})
File renamed without changes.
File renamed without changes.

0 comments on commit f0d35cc

Please sign in to comment.