=== modified file 'lava_server/templates/me.html'
@@ -13,7 +13,7 @@
{% endblock %}
{% block content %}
-<h2>Hi {{ user.first_name }}</h2>
+<h2>Hi {% firstof user.first_name user.username %}</h2>
<p>This is where more interesting things about your actions will show up,
eventually</p>
{% endblock %}
=== modified file 'lava_server/views.py'
@@ -50,7 +50,8 @@
@login_required
def me(request):
data = {
- 'bread_crumb_trail': BreadCrumbTrail.leading_to(me, you=request.user.get_full_name())
+ 'bread_crumb_trail': BreadCrumbTrail.leading_to(
+ me, you=request.user.get_full_name() or request.user.username)
}
context = RequestContext(request, data)
template = loader.get_template('me.html')