diff --git a/subjects/views.py b/subjects/views.py index c6ad60b..96471e8 100644 --- a/subjects/views.py +++ b/subjects/views.py @@ -601,7 +601,7 @@ class SubjectSearchView(LoginRequiredMixin, LogMixin, ListView): tags = tags.split(" ") q = Q() for tag in tags: - q = q | Q(tags__name__unaccent__iexact=tag) + q = q | Q(tags__name__unaccent__icontains=tag ) subjects = Subject.objects.filter(q) #pk = self.request.user.pk diff --git a/topics/views.py b/topics/views.py index c459fea..8e1acbf 100644 --- a/topics/views.py +++ b/topics/views.py @@ -179,7 +179,7 @@ class DeleteView(LoginRequiredMixin, LogMixin, generic.DeleteView): self.object = self.get_object() if self.object.resource_topic.count() > 0: - messages.error(self.request, _('Could not remove this topic. It has on or more resources attached.')) + messages.error(self.request, _('Could not remove this topic. It has one or more resources attached.')) return redirect(reverse_lazy('subjects:view', kwargs = {'slug': self.object.subject.slug})) else: -- libgit2 0.21.2