Commits

The Dod committed e4a891c Draft

Make self_detail @login_required

Comments (0)

Files changed (1)

profiles/views.py

 def self_detail(request):
     return HttpResponseRedirect(reverse('profiles_profile_detail',
         kwargs={ 'username': request.user.username }))
+self_detail = login_required(self_detail)
 
 def profile_list(request, public_profile_field=None,
                  template_name='profiles/profile_list.html', **kwargs):