Commit ad20219de02f4590bd67fb8c3635ac9abd09d574

Authored by Felipe Henrique de Almeida Bormann
1 parent d6712b75

added change to search field of tags

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
subjects/views.py
... ... @@ -601,7 +601,7 @@ class SubjectSearchView(LoginRequiredMixin, LogMixin, ListView):
601 601 tags = tags.split(" ")
602 602 q = Q()
603 603 for tag in tags:
604   - q = q | Q(tags__name__unaccent__iexact=tag)
  604 + q = q | Q(tags__name__unaccent__icontains=tag )
605 605  
606 606 subjects = Subject.objects.filter(q)
607 607 #pk = self.request.user.pk
... ...
topics/views.py
... ... @@ -179,7 +179,7 @@ class DeleteView(LoginRequiredMixin, LogMixin, generic.DeleteView):
179 179 self.object = self.get_object()
180 180  
181 181 if self.object.resource_topic.count() > 0:
182   - messages.error(self.request, _('Could not remove this topic. It has on or more resources attached.'))
  182 + messages.error(self.request, _('Could not remove this topic. It has one or more resources attached.'))
183 183  
184 184 return redirect(reverse_lazy('subjects:view', kwargs = {'slug': self.object.subject.slug}))
185 185 else:
... ...