3 # Copyright (C) 2013 FinalsClub Foundation
5 from django.contrib.auth.models import User
6 from django.views.generic import TemplateView
7 from django.views.generic.detail import SingleObjectMixin
10 class ProfileView(TemplateView, SingleObjectMixin):
12 context_object_name = 'user' # name passed to template
13 template_name = 'user_profile.html'
15 def get_object(self, queryset=None):
17 return self.request.user