comparison gpp/bio/views.py @ 125:903ae6168071

Bio: added odd/even styling to profiles. Make member's list viewable to logged in users only.
author Brian Neal <bgneal@gmail.com>
date Sat, 14 Nov 2009 20:09:17 +0000
parents a20b2c492d55
children 7ea842744a57
comparison
equal deleted inserted replaced
124:9c18250972d5 125:903ae6168071
21 from bio.forms import EditUserProfileForm 21 from bio.forms import EditUserProfileForm
22 from core.paginator import DiggPaginator 22 from core.paginator import DiggPaginator
23 23
24 ####################################################################### 24 #######################################################################
25 25
26 @login_required
26 def member_list(request, type='user', page=1): 27 def member_list(request, type='user', page=1):
27 if type == 'user': 28 if type == 'user':
28 users = auth.models.User.objects.all().order_by('username') 29 users = auth.models.User.objects.all().order_by('username')
29 else: 30 else:
30 users = auth.models.User.objects.all().order_by('date_joined') 31 users = auth.models.User.objects.all().order_by('date_joined')