Ticket #14984: patch.diff

File patch.diff, 620 bytes (added by elbarto, 5 years ago)
  • django/forms/widgets.py

     
    329329
    330330        if value and hasattr(value, "url"):
    331331            template = self.template_with_initial
    332             substitutions['initial'] = (u'<a target="_blank" href="%s">%s</a>'
     332            substitutions['initial'] = (u'<a href="%s">%s</a>'
    333333                                        % (value.url, value))
    334334            if not self.is_required:
    335335                checkbox_name = self.clear_checkbox_name(name)
Back to Top