Commit a1af2e6d2c4b8e4bac64b3a82e7f02ef14234b4f
1 parent
001e1104
Exists in
master
and in
3 other branches
tag cloud is now shuffled
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
subjects/views.py
... | ... | @@ -10,7 +10,7 @@ from django.http import HttpResponse, JsonResponse, HttpResponseRedirect |
10 | 10 | from django.utils.translation import ugettext_lazy as _ |
11 | 11 | |
12 | 12 | from django.contrib.auth.mixins import LoginRequiredMixin |
13 | - | |
13 | +from random import shuffle | |
14 | 14 | from rolepermissions.mixins import HasRoleMixin |
15 | 15 | from categories.forms import CategoryForm |
16 | 16 | |
... | ... | @@ -82,7 +82,7 @@ class HomeView(LoginRequiredMixin, ListView): |
82 | 82 | else: |
83 | 83 | tags.append((item[0], 2)) |
84 | 84 | i += 1 |
85 | - | |
85 | + shuffle(tags) | |
86 | 86 | context['tags'] = tags |
87 | 87 | context['total_subs'] = self.total |
88 | 88 | ... | ... |