Commits

Germano Gabbianelli committed 14c5369

Removed the "not_found" method from AutocompleteSettings.

  • Participants
  • Parent commits 789daf2

Comments (0)

Files changed (1)

autocomplete/views.py

         query = request.GET.get('term', None)
 
         if query is None:
-            return self.not_found(request)
+            raise Http404
 
         if not self.has_permission(request):
             return self.forbidden(request)
     def forbidden(self, request):
         return HttpResponseForbidden()
 
-    def not_found(self, request):
-        raise Http404
-
     def get_absolute_url(self):
         return reverse('autocomplete:autocomplete', args=[
             self.path], current_app=self.current_app)