diff --git a/kobo/apps/audit_log/models.py b/kobo/apps/audit_log/models.py index 1778aaaa59..b45311628b 100644 --- a/kobo/apps/audit_log/models.py +++ b/kobo/apps/audit_log/models.py @@ -334,7 +334,7 @@ def create_from_request(cls, request): 'asset-file-detail': cls.create_from_file_request, 'asset-file-list': cls.create_from_file_request, 'asset-export-list': cls.create_from_export_request, - 'exporttask-list': cls.create_from_v1_export, + 'submissionsexporttask-list': cls.create_from_v1_export, } url_name = request.resolver_match.url_name method = url_name_to_action.get(url_name, None) @@ -567,7 +567,7 @@ def create_from_related_request( action = modify_action if action: # some actions on related objects do not need to be logged, - # eg deleting an ExportTask + # eg deleting an SubmissionsExportTask ProjectHistoryLog.objects.create( user=request.user, object_id=object_id, action=action, metadata=metadata ) diff --git a/kobo/apps/audit_log/tests/test_project_history_logs.py b/kobo/apps/audit_log/tests/test_project_history_logs.py index 693a072eef..f65399d517 100644 --- a/kobo/apps/audit_log/tests/test_project_history_logs.py +++ b/kobo/apps/audit_log/tests/test_project_history_logs.py @@ -851,7 +851,7 @@ def test_export_v1_creates_log(self): # can't use _base_project_history_log_test because # the old endpoint doesn't like format=json self.client.post( - path=reverse('exporttask-list'), + path=reverse('submissionsexporttask-list'), data=request_data, )