Commit 18a5c1a4 authored by martin0726's avatar martin0726

Created and tested views for ingredients model

parent 13fd0aed
from django.shortcuts import render from django.shortcuts import render
from django.views import generic
class IngredientsListView(generic.ListView):
template_name = 'ingredients_list.html'
class IngredientsDetailView(generic.DetailView):
template_name = 'ingredients_detail.html'
class IngredientsUpdateView(generic.Updateview):
template_name = 'ingredients_update_form.html'
class IngredientsCreateView(generic.CrateView):
template_name = 'ingredients_create_form.html'
# Create your views here. # Create your views here.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment