Use reverse lookups for urls
This commit is contained in:
parent
33ec315fbf
commit
748810cd41
18 changed files with 42 additions and 35 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
<div class="column mt-3-mobile ml-3-tablet">
|
||||
<h3 class="title is-5">
|
||||
<a href="/book/{{ book.id }}">{{ book.title }}</a>
|
||||
<a href="{{ book.local_path }}">{{ book.title }}</a>
|
||||
</h3>
|
||||
|
||||
{% if book.authors %}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
{% include 'snippets/stars.html' with rating=book|rating:request.user %}
|
||||
|
||||
<h3 class="title is-6">
|
||||
<a href="/book/{{ book.id }}">{{ book.title }}</a>
|
||||
<a href="{{ book.local_path }}">{{ book.title }}</a>
|
||||
</h3>
|
||||
|
||||
{% if book.authors %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue