      def __init__(self, attrs={}):
          super(AdminFileWidget, self).__init__(attrs)
          
      def render(self, name, value, attrs=None):
          from django.conf import settings
          output = []
          if value:
              output.append('%s <a target="_blank" href="%s%s">%s</a> <br />%s ' % \
                  (_('Currently:'), settings.MEDIA_URL, value, value, _('Change:')))
          output.append(super(AdminFileWidget, self).render(name, value, attrs))
 
</s> remove         from django.conf import settings
 </s> add  </s> remove         from django.conf import settings
 </s> add  </s> remove         from django.conf import settings
 </s> add 
      def __init__(self, attrs={}):
          super(AdminFileWidget, self).__init__(attrs)
          
      def render(self, name, value, attrs=None):

          output = []
          if value:
              output.append('%s <a target="_blank" href="%s%s">%s</a> <br />%s ' % \
                  (_('Currently:'), settings.MEDIA_URL, value, value, _('Change:')))
          output.append(super(AdminFileWidget, self).render(name, value, attrs))
keep keep keep keep replace keep keep keep keep keep
 Fixed #7828 -- Removed some unnecessary imports from admin widgets. Thanks to Julien for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7974 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/admin/widgets.py