Commit 2d3abed3 authored by Bonnegent Sebastien's avatar Bonnegent Sebastien
Browse files

vue générique

parent 70441ab0
from django.shortcuts import render
from .models import Garage, Vehicule
from django.views.generic import ListView
from django.views.generic import edit
from django.views import generic
def home(request):
return render(request, 'garage/home.html', {})
class GarageList(ListView):
class GarageList(generic.ListView):
model = Garage
def get_context_data(self, **kwargs):
......
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