Ticket #24871: widgets.patch

File widgets.patch, 584 bytes (added by Tomáš Pecina, 9 years ago)
  • /usr/lib/python2.7/site-packages/django/forms/widgets.py

    old new  
    392392    def render(self, name, value, attrs=None):
    393393        if value is None: value = ''
    394394        final_attrs = self.build_attrs(attrs, name=name)
    395         return format_html('<textarea{0}>\r\n{1}</textarea>',
     395        return format_html('<textarea{0}>{1}</textarea>',
    396396                           flatatt(final_attrs),
    397397                           force_text(value))
    398398
Back to Top