I tried posting without the code snippet as thought maybe it was the
link though even the first para gets rejected :(
=============================
If you have an image/filefield which isn't required then sometimes you
want to remove the uploaded image from the admin and not simply change
it to another image, below is a change to widget/file.html which will
do this, it won't remove from the filesystem however it will make the
field blank. The code may be written to be more along Django admin
guidelines.
{{{
{% load admin_modify i18n %}{% if bound_field.original_value %}
<span id="{{bound_field.element_id}}_changecontainer">{% trans
"Currently:" %} <a href="{{ bound_field.original_url }}" > {{
bound_field.original_value|escape }} </a> [<a href="#"
onclick="s='{{bound_field.element_id}}';f=document.getElementById(s.substring(0,
s.length-5));f.value='';document.getElementById('{{bound_field.element_id}}_changecontainer').style.display='none';">remove</a>]<br
/>
{% trans "Change:" %}</span>{% output_all bound_field.form_fields %}
{% else %} {% output_all bound_field.form_fields %} {% endif %}
}}}
BTW: committers, please check out ticket 2243 and see whether proposed
changes are appropriate