Commit b29de602131109186fcb66ec66fbc392f44de47e
1 parent
3176f1f7
Exists in
master
and in
39 other branches
Adding attachments to chart
Showing
3 changed files
with
3 additions
and
2 deletions
Show diff stats
src/accounts/views.py
| ... | ... | @@ -61,7 +61,7 @@ class UserProfileDetailView(UserProfileBaseMixin, DetailView): |
| 61 | 61 | ) |
| 62 | 62 | |
| 63 | 63 | |
| 64 | - for type in ['thread', 'ticket', 'wiki', 'changeset']: | |
| 64 | + for type in ['thread', 'ticket', 'wiki', 'changeset', 'attachment']: | |
| 65 | 65 | sqs = SearchQuerySet().filter( |
| 66 | 66 | type=type, |
| 67 | 67 | modified__gte=six_months, | ... | ... |
src/home/views.py
| ... | ... | @@ -17,7 +17,7 @@ def index(request): |
| 17 | 17 | |
| 18 | 18 | count_types = OrderedDict() |
| 19 | 19 | six_months = timezone.now() - timezone.timedelta(days=180) |
| 20 | - for type in ['thread', 'ticket', 'wiki', 'changeset']: | |
| 20 | + for type in ['thread', 'ticket', 'wiki', 'changeset', 'attachment']: | |
| 21 | 21 | count_types[trans(type)] = SearchQuerySet().filter( |
| 22 | 22 | type=type, |
| 23 | 23 | modified__gte=six_months, | ... | ... |