Ticket #14984: patch.diff
File patch.diff, 620 bytes (added by , 14 years ago) |
---|
-
django/forms/widgets.py
329 329 330 330 if value and hasattr(value, "url"): 331 331 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>' 333 333 % (value.url, value)) 334 334 if not self.is_required: 335 335 checkbox_name = self.clear_checkbox_name(name)