fixed bug-40, when adding author/<id>/books route, to edit_id.html, I assumed object existed, when creating it did not, now fixed

This commit is contained in:
2023-07-05 19:45:42 +10:00
parent 3564334a76
commit 8957771ae1
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,9 @@
{% endblock main_content %}
{% block script_content %}
{% if object %}
<script>
$.get( "/author/{{object.id}}/books", function(data) { $('#books_by_author').html(data) } );
</script>
{% endif %}
{% endblock script_content %}