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