{% extends "admin/base.html" %} {% block messages %} {% comment %} This is displayed elswhere {% endcomment %} {% endblock messages %} {% block extrahead %} {{ block.super }} {% endblock %} {% block content %}
{% if assets_to_download %}

Affected Assets

{% for asset in assets_to_download %} {% endfor %}
Asset admin Asset download URL Asset public site Publication status Asset Status Correct asset for this transcription Transcription text
{{ forloop.counter }} {{ asset }} {{ asset.download_url }} {{ asset.get_absolute_url }} {{ asset.published }} {{ asset.transcription_status }} {% if asset.correct_asset_pk %} {{ asset.correct_asset_slug }} {% endif %}
{{ asset.latest_transcription.text }}
{% else %}

The spreadsheet should have two columns headed "download_url" and "real_file_url". The "download_url" column contains the asset download URLs that need to be replaced in asset storage. The optional "real_file_url" column also contains asset download URLs, but these are the correct download URLs for the images that are being replaced.

This feature will not work unless either the @update_task_status decorator is removed from the download_asset task, or this task has its own database representation that will allow the decorator to be in place while invoked via this feature.

{% csrf_token %} {{ form.as_p }}
{% endif %} {% if messages %}

Messages

{% endif %}
{% endblock content %}