Source

django-autocomplete / autocomplete / views.py

Diff from to

autocomplete/views.py

         self.settings = dict()
 
     def allowed(self, request, ac_name, auth):
+        if callable(auth):
+            return auth(request)
+
         if auth and not request.user.is_authenticated():
             return False
         else: