manuels-scolaires/manuels/forms.py
2018-05-21 23:12:35 +02:00

11 lines
255 B
Python

from django import forms
from manuels.models import Book, Teacher
class AddBookForm(forms.ModelForm):
class Meta:
model = Book
fields = '__all__'
add_another = forms.BooleanField(label='Ajouter un autre livre', required=False)