Ticket #22453: fix_tutorial.patch

File fix_tutorial.patch, 989 bytes (added by eugeniocanom@…, 10 years ago)

Patch to fix 22453

  • docs/intro/tutorial01.txt

    From 6f36bedab8258758af604e2baffd7f3f2c6178d1 Mon Sep 17 00:00:00 2001
    From: Eugenio Cano-Manuel <eugeniocanom@gmail.com>
    Date: Wed, 16 Apr 2014 13:44:00 +0000
    Subject: [PATCH] Make DoesNotExist output conform to
     266c0bb23e9d64c47ace4d162e582febd5a1e336 in tutorial
    
    ---
     docs/intro/tutorial01.txt |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
    index 4fb5d1b..3211bb8 100644
    a b Save these changes and start a new Python interactive shell by running  
    777777    >>> Question.objects.get(id=2)
    778778    Traceback (most recent call last):
    779779        ...
    780     DoesNotExist: Question matching query does not exist. Lookup parameters were {'id': 2}
     780    DoesNotExist: Question matching query does not exist.
    781781
    782782    # Lookup by a primary key is the most common case, so Django provides a
    783783    # shortcut for primary-key exact lookups.
Back to Top