Ticket #5988: admin_errors.diff

File admin_errors.diff, 650 bytes (added by Chris Beaven, 17 years ago)
  • django/contrib/admin/views/main.py

     
    159159        return repr(self.__dict__)
    160160
    161161    def html_error_list(self):
    162         return " ".join([form_field.html_error_list() for form_field in self.form_fields if form_field.errors])
     162        return mark_safe(" ".join([form_field.html_error_list() for form_field in self.form_fields if form_field.errors]))
    163163
    164164    def original_url(self):
    165165        if self.is_file_field and self.original and self.field.attname:
Back to Top