Beispiel #1
0
 def index_profiles(self, request):
     # Rebuild the search index.
     index_all_profiles.apply_async()
     messages.success(request, 'Rebuilding index.')
     return HttpResponseRedirect(reverse('admin:users_userprofile_changelist'))
Beispiel #2
0
 def index_profiles(self, request):
     # Rebuild the search index.
     index_all_profiles.apply_async()
     messages.success(request, 'Rebuilding index.')
     return HttpResponseRedirect(
         reverse('admin:users_userprofile_changelist'))