Commit 4e97a360 authored by justin's avatar justin

misc: refactored BookForm code to use '__all__'

parent 892f63d3
......@@ -10,14 +10,7 @@ class BookForm(forms.ModelForm):
# blurb = forms.CharField(label="Blurb", widget=forms.Textarea)
class Meta:
model = Books
fields = [
"title",
"author",
"publisher",
"year_published",
"isbn",
"blurb",
]
fields = "__all__"
class AuthorForm(forms.ModelForm):
......
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