Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
migs_atienza_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
Migs Atienza
migs_atienza_reading
Commits
6781d806
Commit
6781d806
authored
Apr 13, 2023
by
Migs Atienza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created books_details.html
parent
d272edd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
models.cpython-39.pyc
...ienza_reading/bookshelf/__pycache__/models.cpython-39.pyc
+0
-0
models.py
migs_atienza_reading/bookshelf/models.py
+3
-0
books_details.html
..._reading/bookshelf/templates/bookshelf/books_details.html
+27
-0
No files found.
migs_atienza_reading/bookshelf/__pycache__/models.cpython-39.pyc
View file @
6781d806
No preview for this file type
migs_atienza_reading/bookshelf/models.py
View file @
6781d806
...
...
@@ -12,6 +12,9 @@ class Author(models.Model):
def
__str__
(
self
):
return
'{} {}'
.
format
(
self
.
first_name
,
self
.
last_name
)
def
get_absolute_url
(
self
):
return
reverse
(
'bookshelf:author_details'
,
kwargs
=
{
'pk'
:
self
.
pk
})
class
Book
(
models
.
Model
):
title
=
models
.
CharField
(
max_length
=
100
)
...
...
migs_atienza_reading/bookshelf/templates/bookshelf/books_details.html
0 → 100644
View file @
6781d806
{% extends 'base.html' %}
{% block title %}{{ object.title }}{% endblock %}
{% block content %}
<center>
<h3>
<a
href=
"{{ object.author.get_absolute_url }}"
>
{{ object.author }}
</a><br/>
<a>
{{ object.publisher }}
</a><br/>
<a>
{{ object.year_published }}
</a><br/>
<a>
{{ object.ISBN }}
</a><br/>
<a>
{{ object.blurb }}
</a>
</h3>
</center>
{% endblock %}
{% block links %}
<center><br/><br/><br/><br/><br/>
<a
href=
"home"
>
Home
</a>
<a
href=
"books"
>
Books
</a>
<a
href=
"authors"
>
Authors
</a></center>
{% endblock %}
\ 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