Ticket #14790: fix-quoting-in-1.0-guide.diff

File fix-quoting-in-1.0-guide.diff, 1.4 KB (added by Adam Vandenberg, 14 years ago)
  • docs/releases/1.0-porting-guide.txt

    diff --git a/docs/releases/1.0-porting-guide.txt b/docs/releases/1.0-porting-guide.txt
    index 95b9efe..e12b34e 100644
    a b Signals  
    373373  ``sender=None``
    374374
    375375* Make any custom signals you've declared into instances of
    376   :class:`django.dispatch.Signal`` instead of anonymous objects.
     376  :class:`django.dispatch.Signal` instead of anonymous objects.
    377377
    378378Here's quick summary of the code changes you'll need to make:
    379379
    Accessing ``HTTPResponse`` headers  
    626626~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    627627
    628628``django.http.HttpResponse.headers`` has been renamed to ``_headers`` and
    629 :class:`HttpResponse`` now supports containment checking directly. So use
    630 ``if header in response:`` instead of ``if header in response.headers:``.
     629:class:`~django.http.HttpResponse` now supports containment checking directly.
     630So use ``if header in response:`` instead of ``if header in response.headers:``.
    631631
    632632Generic relations
    633633-----------------
    Management commands  
    661661Running management commands from your code
    662662~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    663663
    664 :mod:`django.core.management`` has been greatly refactored.
     664:mod:`django.core.management` has been greatly refactored.
    665665
    666666Calls to management services in your code now need to use
    667667``call_command``. For example, if you have some test code that calls flush and
Back to Top