Ticket #26477: contenttypes-docs-fix.patch

File contenttypes-docs-fix.patch, 1.1 KB (added by Mikkel Munch Mortensen, 9 years ago)

A patch to replace "books" with "bookmarks"

  • docs/ref/contrib/contenttypes.txt

    From 8740632f842fceaf1184ef7a20f23342d9e33b24 Mon Sep 17 00:00:00 2001
    From: Mikkel Munch Mortensen <3xm@detfalskested.dk>
    Date: Thu, 7 Apr 2016 18:50:44 +0200
    Subject: [PATCH] Fix example comment in contenttype docs
    
    Instead of mentioning books, mention bookmarks, as that is what the
    example is about.
    ---
     docs/ref/contrib/contenttypes.txt | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt
    index 343ede1..f47bdf8 100644
    a b Defining :class:`~django.contrib.contenttypes.fields.GenericRelation` with  
    391391This enables filtering, ordering, and other query operations on ``Bookmark``
    392392from ``TaggedItem``::
    393393
    394     >>> # Get all tags belonging to books containing `django` in the url
     394    >>> # Get all tags belonging to bookmarks containing `django` in the url
    395395    >>> TaggedItem.objects.filter(bookmarks__url__contains='django')
    396396    <QuerySet [<TaggedItem: django>, <TaggedItem: python>]>
    397397
Back to Top