Commit 1338edda authored by Karlo Cabugwang's avatar Karlo Cabugwang

added classes to views

parent 3707220b
from django.shortcuts import render
from django.views.generic.base import TemplateView
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from django.views.generic.edit import CreateView, UpdateView
class IngredientsListView(ListView):
template_name = "ingredients_list.html"
class IngredientsDetailView(DetailView):
template_name = "ingredients_detail.html"
class IngredientsCreateView(CreateView):
template_name = "ingredients_create_form.html"
class IngredientsUpdateView(UpdateView):
template_name = "ingredients_update_form.html"
class OrdersListView(ListView):
template_name = "orders_list.html"
class OrdersDetailView(DetailView):
template_name = "orders_detail.html"
class OrdersCreateView(CreateView):
template_name = "orders_create_form.html"
class OrdersUpdateView(UpdateView):
template_name = "orders_update_form.html"
class RecipesListView(ListView):
template_name = "recipes_list.html"
class RecipesDetailView(DetailView):
template_name = "recipes_detail.html"
class RecipesCreateView(CreateView):
template_name = "recipes_create_form.html"
class RecipesUpdateView(UpdateView):
template_name = "recipes_update_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