Commit c7f6314fe540bf1d48c9889ca3cf1b6fb141e034

Authored by Sergio Oliveira
1 parent 2f0e3c09

Commented out trac stuff

Showing 1 changed file with 9 additions and 5 deletions   Show diff stats
src/accounts/views.py
@@ -68,13 +68,17 @@ class UserProfileDetailView(UserProfileBaseMixin, DetailView): @@ -68,13 +68,17 @@ class UserProfileDetailView(UserProfileBaseMixin, DetailView):
68 {'fullname_and_username__contains': user.username}, 68 {'fullname_and_username__contains': user.username},
69 ) 69 )
70 70
71 - counter_class = {  
72 - 'wiki': WikiCollabCount,  
73 - 'ticket': TicketCollabCount,  
74 - } 71 + counter_class = {}
  72 + #{
  73 + # 'wiki': WikiCollabCount,
  74 + # 'ticket': TicketCollabCount,
  75 + #}
  76 +
  77 + types = ['thread']
  78 + #types.extend(['ticket', 'wiki', 'changeset', 'attachment'])
75 79
76 messages = Message.objects.filter(from_address__user__pk=user.pk) 80 messages = Message.objects.filter(from_address__user__pk=user.pk)
77 - for type in ['thread', 'ticket', 'wiki', 'changeset', 'attachment']: 81 + for type in types:
78 CounterClass = counter_class.get(type) 82 CounterClass = counter_class.get(type)
79 if CounterClass: 83 if CounterClass:
80 try: 84 try: