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
4cb6eeac
Commit
4cb6eeac
authored
Apr 13, 2023
by
Migs Atienza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created authors_details.html
parent
53587adc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
4 deletions
+35
-4
models.cpython-39.pyc
...ienza_reading/bookshelf/__pycache__/models.cpython-39.pyc
+0
-0
models.py
migs_atienza_reading/bookshelf/models.py
+1
-1
authors_details.html
...eading/bookshelf/templates/bookshelf/authors_details.html
+31
-0
books_details.html
..._reading/bookshelf/templates/bookshelf/books_details.html
+3
-3
No files found.
migs_atienza_reading/bookshelf/__pycache__/models.cpython-39.pyc
View file @
4cb6eeac
No preview for this file type
migs_atienza_reading/bookshelf/models.py
View file @
4cb6eeac
...
...
@@ -13,7 +13,7 @@ class Author(models.Model):
return
'{} {}'
.
format
(
self
.
first_name
,
self
.
last_name
)
def
get_absolute_url
(
self
):
return
reverse
(
'bookshelf:author_details'
,
kwargs
=
{
'pk'
:
self
.
pk
})
return
reverse
(
'bookshelf:author
s
_details'
,
kwargs
=
{
'pk'
:
self
.
pk
})
class
Book
(
models
.
Model
):
...
...
migs_atienza_reading/bookshelf/templates/bookshelf/authors_details.html
0 → 100644
View file @
4cb6eeac
{% extends 'base.html' %}
{% block title %}{{ object.first_name }} {{ object.last_name}}{% endblock %}
{% block content %}
<h3>
<a>
{{ object.first_name }} {{ object.last_name}}
</a><br/>
<a>
{{ object.age }} years old
</a><br/>
<a>
{{ object.nationality }}
</a><br/>
<a>
{{ object.bio }}
</a><br/><br/>
</h3>
<h2>
Books by {{ object.first_name }} {{ object.last_name}} I Love:
<br/>
</h2>
<ul>
</ul>
{% endblock %}
{% block links %}
<center><br/><br/><br/><br/><br/>
<a
href=
"/bookshelf/home"
>
Home
</a>
<a
href=
"/bookshelf/books"
>
Books
</a>
<a
href=
"/bookshelf/authors"
>
Authors
</a></center>
{% endblock %}
\ No newline at end of file
migs_atienza_reading/bookshelf/templates/bookshelf/books_details.html
View file @
4cb6eeac
...
...
@@ -21,7 +21,7 @@
</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>
<a
href=
"
/bookshelf/
home"
>
Home
</a>
<a
href=
"
/bookshelf/
books"
>
Books
</a>
<a
href=
"
/bookshelf/
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