Commit 4a957b68 authored by Trisha Angel Millena's avatar Trisha Angel Millena

Created forms.py

parent 265ef612
from django.forms import ModelForm
from .models import Books, Author
class BookForm(ModelForm):
class Meta:
model = Books
fields = "__all__"
class AuthorForm(ModelForm):
class Meta:
model = Author
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