def get_context_data(self, **kwargs):
        ctx = super(WooeyProfileView, self).get_context_data(**kwargs)

        if 'username' in self.kwargs:
            user = get_user_model()
            ctx['profile_user'] = user.objects.get(username=self.kwargs.get('username'))

        else:
            if self.request.user and self.request.user.is_authenticated():
                ctx['profile_user'] = self.request.user

        return ctx
dataset/ETHPy150Open wooey/Wooey/wooey/views/views.py/WooeyProfileView.get_context_data/original