Use name field only for author name

It feels janky to remove a more granular name designation, but all these
first/last name fields were algorithmically populated by a dubious
process of splitting the name by a space character. If it makes sense to
have first/last name fields, it should be re-added with some
consideration.
This commit is contained in:
Mouse Reeve
2020-12-12 09:47:27 -08:00
parent 5cf9e24ae5
commit 31a407d74a
7 changed files with 35 additions and 20 deletions

View File

@ -2,7 +2,7 @@
{% load fr_display %}
{% block content %}
<div class="block">
<h1 class="title">{{ author.display_name }}</h1>
<h1 class="title">{{ author.name }}</h1>
{% if author.bio %}
<p>
@ -12,7 +12,7 @@
</div>
<div class="block">
<h3 class="title is-4">Books by {{ author.display_name }}</h3>
<h3 class="title is-4">Books by {{ author.name }}</h3>
{% include 'snippets/book_tiles.html' with books=books %}
</div>
{% endblock %}

View File

@ -1 +1 @@
<a href="/author/{{ book.authors.first.id }}" class="author">{{ book.authors.first.display_name }}</a>
<a href="/author/{{ book.authors.first.id }}" class="author">{{ book.authors.first.name }}</a>

View File

@ -43,7 +43,7 @@
<a href="/book/{{ book.id }}">{{ book.title }}</a>
</td>
<td>
{{ book.authors.first.display_name }}
{{ book.authors.first.name }}
</td>
<td>
{% if book.first_published_date %}{{ book.first_published_date }}{% endif %}