comparison gcalendar/views.py @ 789:9e803323a0d0

Removing AUTH_PROFILE_MODULE and get_profile().
author Brian Neal <bgneal@gmail.com>
date Fri, 23 May 2014 15:10:11 -0500
parents ee87ea74d46b
children 74e84f5fc948
comparison
equal deleted inserted replaced
788:84aa49497718 789:9e803323a0d0
18 18
19 19
20 def index(request): 20 def index(request):
21 user = request.user 21 user = request.user
22 if user.is_authenticated(): 22 if user.is_authenticated():
23 profile = user.get_profile() 23 tz = user.profile.time_zone
24 tz = profile.time_zone
25 else: 24 else:
26 tz = 'US/Pacific' 25 tz = 'US/Pacific'
27 26
28 return render_to_response('gcalendar/index.html', { 27 return render_to_response('gcalendar/index.html', {
29 'tz': tz, 28 'tz': tz,