diff --git a/amadeus/static/css/base/amadeus.css b/amadeus/static/css/base/amadeus.css index 5d9adc9..23aef4f 100755 --- a/amadeus/static/css/base/amadeus.css +++ b/amadeus/static/css/base/amadeus.css @@ -17,6 +17,12 @@ .users-cloud li:nth-of-type(5n - 3) { font-size: 3em; } + +.div-users-cloud{ + height: 200px; + margin-left: 20%; + width: 70%; +} /* initial page ends */ /* sidebar menu */ diff --git a/categories/views.py b/categories/views.py index d0c1f2b..4af0254 100644 --- a/categories/views.py +++ b/categories/views.py @@ -28,7 +28,7 @@ class IndexView(views.SuperuserRequiredMixin, LoginRequiredMixin, ListView): login_url = reverse_lazy("users:login") redirect_field_name = 'next' - queryset = Category.objects.all() + queryset = Category.objects.all().order_by('name') template_name = 'categories/list.html' context_object_name = 'categories' paginate_by = 10 @@ -57,8 +57,6 @@ class IndexView(views.SuperuserRequiredMixin, LoginRequiredMixin, ListView): def get_context_data(self, **kwargs): context = super(IndexView, self).get_context_data(**kwargs) - categories = self.get_queryset().order_by('name') - context['categories'] = categories context['settings_menu_active'] = "settings_menu_active" return context diff --git a/subjects/templates/subjects/initial.html b/subjects/templates/subjects/initial.html index b920a4b..22f7cb5 100644 --- a/subjects/templates/subjects/initial.html +++ b/subjects/templates/subjects/initial.html @@ -5,7 +5,7 @@ {% block content %}