diff --git a/subjects/templates/subjects/list.html b/subjects/templates/subjects/list.html
index 32a428e..be62000 100644
--- a/subjects/templates/subjects/list.html
+++ b/subjects/templates/subjects/list.html
@@ -154,6 +154,9 @@
+
+
+
{% if category.coordinators.all|length > 0 %}
{% trans "Coordinator(s) " %}:
{{ category.coordinators.all|join:', ' }}
diff --git a/topics/forms.py b/topics/forms.py
index 0ef8457..8ee1cb2 100644
--- a/topics/forms.py
+++ b/topics/forms.py
@@ -19,9 +19,9 @@ class TopicForm(forms.ModelForm):
repo = self.cleaned_data.get('repository', False)
if self.instance.id:
- same_name = len(self.subject.topic_subject.filter(name__unaccent__iexact = name).exclude(id = self.instance.id))
+ same_name = self.subject.topic_subject.filter(name__unaccent__iexact = name).exclude(id = self.instance.id).count()
else:
- same_name = len(self.subject.topic_subject.filter(name__unaccent__iexact = name))
+ same_name = self.subject.topic_subject.filter(name__unaccent__iexact = name).count()
if same_name > 0:
if repo:
--
libgit2 0.21.2