Ticket #8546: django-content-attr.patch

File django-content-attr.patch, 1.0 KB (added by Michael Schurter, 16 years ago)
  • docs/ref/request-response.txt

     
    434434There's nothing Django-specific about the ``Content-Disposition`` header, but
    435435it's easy to forget the syntax, so we've included it here.
    436436
     437Attributes
     438----------
     439
     440.. attribute:: HttpResponse.content
     441
     442    Gets or sets the content as a Python string, encoding it from a Unicode
     443    object if necessary. Note this is a property.
     444
    437445Methods
    438446-------
    439447
     
    501509    values you used in ``set_cookie()`` -- otherwise the cookie may not be
    502510    deleted.
    503511
    504 .. method:: HttpResponse.content()
    505 
    506     Returns the content as a Python string, encoding it from a Unicode object
    507     if necessary. Note this is a property, not a method, so use ``r.content``
    508     instead of ``r.content()``.
    509 
    510512.. method:: HttpResponse.write(content)
    511513
    512514    This method makes an :class:`HttpResponse` instance a file-like object.
Back to Top