Skip to content

Commit

Permalink
corrige le bug dans la page du membre
Browse files Browse the repository at this point in the history
  • Loading branch information
artragis committed Jul 6, 2015
1 parent e2d1d06 commit a2c77aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zds/member/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def get_object(self, queryset=None):
def get_context_data(self, **kwargs):
context = super(MemberDetail, self).get_context_data(**kwargs)
usr = context['usr']
context['topics'] = list(context['topics'])

This comment has been minimized.

Copy link
@pierre-24

pierre-24 Jul 6, 2015

Collaborator

La correction doit ce faire juste en dessous, c'est pas comme les deux autres ;)

profile = usr.profile
context['profile'] = profile
context['topics'] = Topic.objects.last_topics_of_a_member(usr, self.request.user)
Expand All @@ -81,7 +82,7 @@ def get_context_data(self, **kwargs):
context['karmanotes'] = KarmaNote.objects.filter(user=usr).order_by('-create_at')
context['karmaform'] = KarmaForm(profile)
context['form'] = OldTutoForm(profile)
context['topic_read'] = TopicRead.objects.list_read_topic_pk(usr, context['topics'])
context['topic_read'] = TopicRead.objects.list_read_topic_pk(self.request.user, context['topics'])
return context


Expand Down

0 comments on commit a2c77aa

Please sign in to comment.