Commit 2925119d authored by Ysabella Panghulan's avatar Ysabella Panghulan

added BookForm in forms.py

parent 11dd3d43
from django import forms
from django.forms import ModelForm
from .models import Author
from .models import Author, Books
class AuthorForm(ModelForm):
class Meta:
model = Author
fields = '__all__'
\ No newline at end of file
fields = '__all__'
class BookForm(ModelForm):
class Meta:
model = Books
fields = '__all__'
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