{% extends "profile/myprofile.html" %} {% load smart_if %} {% block profileContent %}
{% if user.profile.getBooksOwned %}

My Books:

{% for bookOwned in user.profile.getBooksOwned %} {% endfor %}
  Title Author Status  
{% if bookOwned.book.coverUrl %} {% endif %} {{bookOwned.book.title}} {{bookOwned.book.author}}
{% else %}

You have no books

{% endif %}
{%endblock%}