Commit ad35104c authored by littleredpanda14's avatar littleredpanda14

Created views

parent 20ee4d40
Pipeline #1036 canceled with stages
from django.shortcuts import render from django.shortcuts import render
from django.views.generic.base import ListView, DetailView, UpdateView, CreateView
class IngredientsListView(ListView):
template_name = 'ingredients_list.html'
class IngredientsDetailView(DetailView):
template_name = 'ingredients_detail.html'
class IngredientsUpdateView(UpdateView):
template_name = 'ingredients_update_form.html'
class IngredientsCreateView(CreateView):
template_name = 'ingredients_create_form.html'
class RecipesListView(ListView):
template_name = 'recipes_list.html'
class RecipesDetailView(DetailView):
template_name = 'recipes_detail.html'
class RecipesUpdateView(UpdateView):
template_name = 'recipes_update_form.html'
class RecipesCreateView(CreateView):
template_name = 'recipes_create_form.html'
class OrdersListView(ListView):
template_name = 'orders_list.html'
class OrdersDetailView(DetailView):
template_name = 'orders_detail.html'
class IngredientUpdateView(UpdateView):
template_name = 'orders_update_form.html'
class IngredientCreateView(CreateView):
template_name = 'orders_create_form.html'
# 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