Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
justinreyes_reading
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Justin Reyes
justinreyes_reading
Commits
4e97a360
Commit
4e97a360
authored
Apr 24, 2023
by
justin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc: refactored BookForm code to use '__all__'
parent
892f63d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
forms.cpython-310.pyc
...reyes_reading/bookshelf/__pycache__/forms.cpython-310.pyc
+0
-0
forms.py
justinreyes_reading/bookshelf/forms.py
+1
-8
No files found.
justinreyes_reading/bookshelf/__pycache__/forms.cpython-310.pyc
View file @
4e97a360
No preview for this file type
justinreyes_reading/bookshelf/forms.py
View file @
4e97a360
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment