I need an example of adding a custom external function to a django Admin. I added the function to the drop-down, but how do I configure it to call it?
@admin.action(description=‘Run SA Job’)
def run_sa_job(self, request, queryset):
job_run_result = queryset.select inspection_job.runSA() # how do I configure this call and what do I pass to it?
self.message_user(
request,
f’the run was {job_run_result}',
messages.WARNING