From c7f6314fe540bf1d48c9889ca3cf1b6fb141e034 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Tue, 2 Sep 2014 16:27:00 -0300 Subject: [PATCH] Commented out trac stuff --- src/accounts/views.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/accounts/views.py b/src/accounts/views.py index 8ec421a..362289e 100644 --- a/src/accounts/views.py +++ b/src/accounts/views.py @@ -68,13 +68,17 @@ class UserProfileDetailView(UserProfileBaseMixin, DetailView): {'fullname_and_username__contains': user.username}, ) - counter_class = { - 'wiki': WikiCollabCount, - 'ticket': TicketCollabCount, - } + counter_class = {} + #{ + # 'wiki': WikiCollabCount, + # 'ticket': TicketCollabCount, + #} + + types = ['thread'] + #types.extend(['ticket', 'wiki', 'changeset', 'attachment']) messages = Message.objects.filter(from_address__user__pk=user.pk) - for type in ['thread', 'ticket', 'wiki', 'changeset', 'attachment']: + for type in types: CounterClass = counter_class.get(type) if CounterClass: try: -- libgit2 0.21.2