From 3d3bb33cc79082801ba57630ca33675e7aa74aff Mon Sep 17 00:00:00 2001 From: Felipe Henrique de Almeida Bormann Date: Sat, 31 Dec 2016 01:58:03 -0300 Subject: [PATCH] fixed description in manage categories --- categories/templates/categories/list.html | 4 ++-- subjects/templates/subjects/list.html | 6 +++--- subjects/views.py | 3 --- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/categories/templates/categories/list.html b/categories/templates/categories/list.html index de64e4f..66fa8a8 100755 --- a/categories/templates/categories/list.html +++ b/categories/templates/categories/list.html @@ -83,11 +83,11 @@

{% trans "Coordinator(s): " %} {% for coordinator in category.coordinators.all %} - {{coordinator.username}} + {{coordinator.social_name}} {% endfor %}

- + {{category.description|safe}} diff --git a/subjects/templates/subjects/list.html b/subjects/templates/subjects/list.html index 6de1a05..c47e2c4 100644 --- a/subjects/templates/subjects/list.html +++ b/subjects/templates/subjects/list.html @@ -76,13 +76,13 @@

{% trans "Coordinator(s): " %} {% for coordinator in category.coordinators.all %} - {{coordinator.username}} + {{coordinator.social_name}} {% endfor %}

{{category.description|safe}} - {% if user in category.coordinators.all %} + {% if user in category.coordinators.all %} - {% endif %} + {% endif %} diff --git a/subjects/views.py b/subjects/views.py index 3143b58..5c28fab 100644 --- a/subjects/views.py +++ b/subjects/views.py @@ -37,8 +37,6 @@ class IndexView(LoginRequiredMixin, ListView): def get_queryset(self): result = super(IndexView, self).get_queryset() - - return result def render_to_response(self, context, **response_kwargs): @@ -59,7 +57,6 @@ class IndexView(LoginRequiredMixin, ListView): def get_context_data(self, **kwargs): context = super(IndexView, self).get_context_data(**kwargs) - list_categories = None categories = self.get_queryset().order_by('name') -- libgit2 0.21.2