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:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user