From d8eb72e1c1530dcd4fff282e780c85d9e151bf0f Mon Sep 17 00:00:00 2001 From: Paige Williams Date: Tue, 23 Jun 2026 10:09:53 -0700 Subject: [PATCH] fix typos in import error messages --- TEKDB/TEKDB/static/admin/js/admin_index.js | 4 ++-- TEKDB/TEKDB/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TEKDB/TEKDB/static/admin/js/admin_index.js b/TEKDB/TEKDB/static/admin/js/admin_index.js index 98485d93..f61d17e5 100644 --- a/TEKDB/TEKDB/static/admin/js/admin_index.js +++ b/TEKDB/TEKDB/static/admin/js/admin_index.js @@ -1,6 +1,6 @@ const importText = ` This process will remove all data and files from your current - database and replace it with data from the provided zip file. + database and replace it with data from the provided zipfile.

This process CANNOT be undone.

It is recommended that you use the 'Export to .zip' button above to export @@ -14,7 +14,7 @@ const importText = ` `; const importInfoText = `The Import Database Tool is designed to support restoring your Traditional Knowledge Database back to a prior state. This is best used in conjunction with the 'Export Database' tool above.

- To use the Import Database tool is simple: select a properly formatted zip file to upload and then click 'Import'. All of your data will be reverted back to the state it was when that zipfile was created.

+ To use the Import Database tool is simple: select a properly formatted zipfile to upload and then click 'Import'. All of your data will be reverted back to the state it was when that zipfile was created.

This is VERY DANGEROUS! For this to work, all of the data currently in your database, including your users, your records, and your page contents will be removed, and then replaced. Also, any files diff --git a/TEKDB/TEKDB/views.py b/TEKDB/TEKDB/views.py index 0ca76b94..9fa04bba 100644 --- a/TEKDB/TEKDB/views.py +++ b/TEKDB/TEKDB/views.py @@ -245,7 +245,7 @@ def ImportDatabase(request): # Validate Zip Contents if not len(non_media) == 1 or len(zip.namelist()) < 2: status_code = 500 - status_message = "Received malformed import file. Must be a zipfile contailing one JSON file and a directory named 'media'" + status_message = "Received malformed import file. Must be a zipfile containing one JSON file and a directory named 'media'" return JsonResponse( { "status_code": status_code,