return self.username
+ @property
+ def last_activity(self):
+ return self.actions.order_by('-action_date')[0].action_date
+
@property
def gravatar(self):
return md5(self.email).hexdigest()
{% if view_user.last_seen %}
<tr>
<td>{% trans "last seen" %}</td>
- <td><strong title="{{ view_user.last_login }}">{% diff_date view_user.last_login %}</strong></td>
+ <td><strong title="{{ view_user.last_activity }}">{% diff_date view_user.last_activity %}</strong></td>
</tr>
{% endif %}
{% if view_user.website %}