Skip to content

Commit 4aff905

Browse files
committed
Fix book_instance error in book renew template
1 parent 4a749c2 commit 4aff905

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{% extends "base_generic.html" %}
22

33
{% block content %}
4-
<h1>Renew: {{bookinst.book.title}}</h1>
5-
<p>Borrower: {{bookinst.borrower}}</p>
6-
<p{% if bookinst.is_overdue %} class="text-danger"{% endif %}>Due date: {{bookinst.due_back}}</p>
4+
<h1>Renew: {{book_instance.book.title}}</h1>
5+
<p>Borrower: {{book_instance.borrower}}</p>
6+
<p{% if book_instance.is_overdue %} class="text-danger"{% endif %}>Due date: {{book_instance.due_back}}</p>
77

88
<form action="" method="post">
99
{% csrf_token %}
1010
<table>
11-
{{ form }}
11+
{{ form.as_table }}
1212
</table>
1313
<input type="submit" value="Submit" />
1414
</form>
15-
1615
{% endblock %}
17-

0 commit comments

Comments
 (0)