Ticket #14488: class-based-views-url-books.diff

File class-based-views-url-books.diff, 591 bytes (added by Frank Wiles, 14 years ago)

Patch

  • docs/topics/class-based-views.txt

    diff --git a/docs/topics/class-based-views.txt b/docs/topics/class-based-views.txt
    index 1f5421a..83f060a 100644
    a b publication date, with the most recent first::  
    290290            queryset = Publisher.objects.all(),
    291291            context_object_name = "publisher_list",
    292292        )),
    293         (r'^publishers/$', ListView.as_view(
     293        (r'^books/$', ListView.as_view(
    294294            queryset = Book.objects.order_by("-publication_date"),
    295295            context_object_name = "book_list",
    296296        )),
Back to Top