Commit 2c7c7fd0d35682e8b35d24b6e574ff1929777efe
1 parent
1454431b
Exists in
master
and in
3 other branches
markers cloud is working but still have to think about edge cases
Showing
3 changed files
with
8 additions
and
4 deletions
Show diff stats
amadeus/static/css/base/amadeus.css
categories/views.py
... | ... | @@ -28,7 +28,7 @@ class IndexView(views.SuperuserRequiredMixin, LoginRequiredMixin, ListView): |
28 | 28 | |
29 | 29 | login_url = reverse_lazy("users:login") |
30 | 30 | redirect_field_name = 'next' |
31 | - queryset = Category.objects.all() | |
31 | + queryset = Category.objects.all().order_by('name') | |
32 | 32 | template_name = 'categories/list.html' |
33 | 33 | context_object_name = 'categories' |
34 | 34 | paginate_by = 10 |
... | ... | @@ -57,8 +57,6 @@ class IndexView(views.SuperuserRequiredMixin, LoginRequiredMixin, ListView): |
57 | 57 | def get_context_data(self, **kwargs): |
58 | 58 | context = super(IndexView, self).get_context_data(**kwargs) |
59 | 59 | |
60 | - categories = self.get_queryset().order_by('name') | |
61 | - context['categories'] = categories | |
62 | 60 | context['settings_menu_active'] = "settings_menu_active" |
63 | 61 | |
64 | 62 | return context | ... | ... |
subjects/templates/subjects/initial.html