Skip to content
Snippets Groups Projects
Commit ebdc6462 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

use Bibliography ModelForm in corresponding generic views

parent ff5583b5
No related branches found
No related tags found
No related merge requests found
...@@ -3,15 +3,15 @@ from django.views.generic.edit import CreateView, UpdateView, DeleteView ...@@ -3,15 +3,15 @@ from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.views.generic.detail import DetailView from django.views.generic.detail import DetailView
from django.views.generic import ListView from django.views.generic import ListView
from django.urls import reverse_lazy from django.urls import reverse_lazy
from .models import Bibliography from .models import Bibliography, BibliographyForm
class BibliographyCreate(CreateView): class BibliographyCreate(CreateView):
model = Bibliography model = Bibliography
fields = '__all__' form_class = BibliographyForm
class BibliographyUpdate(UpdateView): class BibliographyUpdate(UpdateView):
model = Bibliography model = Bibliography
fields = '__all__' form_class = BibliographyForm
class BibliographyDelete(DeleteView): class BibliographyDelete(DeleteView):
model = Bibliography model = Bibliography
......
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