just had this issue the other day, here's my crude hack. stick this in widget/file.html
{% 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 %} hopefully the formatting all came through ok and works for you. On 7/28/06, Tamara D. Snyder <[EMAIL PROTECTED]> wrote: > > I know this has been asked before, but I can't seem to find any > helpful answers. > > I have an imagefield that is not mandatory (blank=True). In the > admin, I am able to insert an image, and I can change the image to > another one. But I am not able to go back to having no image. Is > there a way to do this? I don't care about deleting the image from > my file system (I don't expect a lot of images). > > I've thought of a way I can do this. I can add a boolean field > "useImage" (or something similar) to the model. A checkbox would > appear in the admin, and if the box is unchecked the image will not > be used. It just seems a shame to do it this way, and I keep > thinking that there must be a way to simply blank out that character > field in the database. > > So, is there a really obvious solution that I'm missing? I'm sure > there is, I'm sort of new at all of this. But I just can't find it > anywhere. > > Thanks for the help, > > Tamara > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---