diff --git a/logbook/templates/logbook/logentry_list.html b/logbook/templates/logbook/logentry_list.html index d850370..c8f5cb2 100644 --- a/logbook/templates/logbook/logentry_list.html +++ b/logbook/templates/logbook/logentry_list.html @@ -44,7 +44,7 @@

Log entries

{% endfor %} {{ obj.landings }} - {% if not obj.pilot.me %}{{ obj.pilot.first_name.0 }}. {{ obj.pilot.last_name }}{% else %}Self{% endif %} + {% if obj.pilot %}{% if not obj.pilot.me %}{{ obj.pilot.first_name.0 }}. {{ obj.pilot.last_name }}{% else %}Self{% endif %}{% endif %} {% for function_type in FunctionType %} {% if obj.time_function == function_type %}