Commit 6ac6f962 authored by enricosuplico's avatar enricosuplico

added forms.py

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