def user(request, username): """ ``User`` focused activity stream. (Eg: Profile page twitter.com/justquick) """ instance = get_object_or_404(User, **{'is_active': True, compat.username_field(): username}) return render_to_response('actstream/actor.html', { 'ctype': ContentType.objects.get_for_model(User), 'actor': instance, 'action_list': models.user_stream(instance) }, context_instance=RequestContext(request))
def user(request, username): """ ``User`` focused activity stream. (Eg: Profile page twitter.com/justquick) """ instance = get_object_or_404( User, **{ 'is_active': True, compat.username_field(): username }) return render_to_response('actstream/actor.html', { 'ctype': ContentType.objects.get_for_model(User), 'actor': instance, 'action_list': models.user_stream(instance) }, context_instance=RequestContext(request))