Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TEKDB/TEKDB/static/admin/js/admin_index.js
Original file line number Diff line number Diff line change
@@ -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.
</br><br>
This process CANNOT be undone. </br><br>
It is recommended that you use the 'Export to .zip' button above to export
Expand All @@ -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. </br><br>
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. </br><br>
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. </br><br>
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
Expand Down
2 changes: 1 addition & 1 deletion TEKDB/TEKDB/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading