Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
Deokhyun_Lee_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
Deokhyun Lee
Deokhyun_Lee_reading
Commits
e72f854e
Commit
e72f854e
authored
Apr 25, 2023
by
Deokhyun Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new branch lab04
parent
f35453ae
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
author_details.html
...e_reading/bookshelf/templates/authors/author_details.html
+0
-0
authors.html
...hyun_Lee_reading/bookshelf/templates/authors/authors.html
+0
-0
book_details.html
...n_Lee_reading/bookshelf/templates/books/book_details.html
+0
-0
books.html
Deokhyun_Lee_reading/bookshelf/templates/books/books.html
+0
-0
views.py
Deokhyun_Lee_reading/bookshelf/views.py
+5
-5
No files found.
Deokhyun_Lee_reading/bookshelf/templates/authors/author.html
→
Deokhyun_Lee_reading/bookshelf/templates/authors/author
_details
.html
View file @
e72f854e
File moved
Deokhyun_Lee_reading/bookshelf/templates/authors/
index
.html
→
Deokhyun_Lee_reading/bookshelf/templates/authors/
authors
.html
View file @
e72f854e
File moved
Deokhyun_Lee_reading/bookshelf/templates/books/book.html
→
Deokhyun_Lee_reading/bookshelf/templates/books/book
_details
.html
View file @
e72f854e
File moved
Deokhyun_Lee_reading/bookshelf/templates/books/
index
.html
→
Deokhyun_Lee_reading/bookshelf/templates/books/
books
.html
View file @
e72f854e
File moved
Deokhyun_Lee_reading/bookshelf/views.py
View file @
e72f854e
...
@@ -11,13 +11,13 @@ class HomeView(View):
...
@@ -11,13 +11,13 @@ class HomeView(View):
# Views for Authors page
# Views for Authors page
class
AuthorListView
(
ListView
):
class
AuthorListView
(
ListView
):
model
=
Author
model
=
Author
template_name
=
'authors/
index
.html'
template_name
=
'authors/
authors
.html'
context_object_name
=
'authors'
context_object_name
=
'authors'
ordering
=
[
'id'
]
ordering
=
[
'id'
]
class
AuthorDetailView
(
DetailView
):
class
AuthorDetailView
(
DetailView
):
model
=
Author
model
=
Author
template_name
=
'authors/author.html'
template_name
=
'authors/author
_details
.html'
context_object_name
=
'author'
context_object_name
=
'author'
# this line for getting the param value "pk"
# this line for getting the param value "pk"
...
@@ -31,11 +31,11 @@ class AuthorDetailView(DetailView):
...
@@ -31,11 +31,11 @@ class AuthorDetailView(DetailView):
# Views for Books page
# Views for Books page
class
BookListView
(
ListView
):
class
BookListView
(
ListView
):
model
=
Books
model
=
Books
template_name
=
'books/
index
.html'
template_name
=
'books/
books
.html'
context_object_name
=
'books'
context_object_name
=
'books'
ordering
=
[
'id'
]
ordering
=
[
'id'
]
class
BookDetailView
(
DetailView
):
class
BookDetailView
(
DetailView
):
model
=
Books
model
=
Books
template_name
=
'books/book.html'
template_name
=
'books/book
_details
.html'
context_object_name
=
'book'
context_object_name
=
'book'
\ No newline at end of file
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