Ejemplo n.º 1
0
 def autoimport(self, request):
     """Autoimport documents from S3"""
     # pylint: disable=no-self-use
     autoimport.apply_async()
     messages.info(request, 'Auotimport started')
     return HttpResponseRedirect(
         reverse('admin:foia_foiarequest_changelist'))
Ejemplo n.º 2
0
 def autoimport(self, request):
     """Autoimport documents from S3"""
     autoimport.apply_async()
     messages.info(request, "Auotimport started")
     return HttpResponseRedirect(
         reverse("admin:foia_foiarequest_changelist"))