Ticket #6331: shortcuts.txt.diff

File shortcuts.txt.diff, 665 bytes (added by Herbert Poul <herbert.poul@…>, 17 years ago)

"patch" for the 3 typos

  • docs/shortcuts.txt

     
    9494
    9595    def my_view(request):
    9696        try:
    97             my_object = MyModel.object.get(pk=1)
     97            my_object = MyModel.objects.get(pk=1)
    9898        except MyModel.DoesNotExist:
    9999            raise Http404
    100100
     
    136136    from django.http import Http404
    137137
    138138    def my_view(request):
    139         my_objects = MyModels.object.filter(published=True)
     139        my_objects = MyModel.objects.filter(published=True)
    140140        if not my_objects:
    141141            raise Http404
    142142
Back to Top