... = "Police beat site news" link = "/sitenews/" description = "Updates on changes and additions to police beat central." def items ( self ): return NewsItem . objects . order_by ( "-pub_date" )[: 5 ] def item_title ( self , item ): return item . title d ... ブクラスです。 title 、 link 、および description は、それぞれ標準RSSの <title> , <link> , <description> 要素に対応します。 items() は、フィードに含めるべきオブジェクトのリストを返すメソッドです。この例では、Djangoの ORM を使用して NewsItem オブジェクト ... を返しますが、 items() は必ずモデルインスタンスを返す必要はありません。Django モデルを使用することで、いくつかの機能が「タダ」で提供されますが、 ... ... = "Police beat site news" link = "/sitenews/" description = "Updates on changes and additions to police beat central." def items ( self ): return NewsItem . objects . order_by ( "-pub_date" )[: 5 ] def item_title ( self , item ): return item . title d ... ブクラスです。 title 、 link 、および description は、それぞれ標準RSSの <title> , <link> , <description> 要素に対応します。 items() は、フィードに含めるべきオブジェクトのリストを返すメソッドです。この例では、Djangoの ORM を使用して NewsItem オブジェクト ... を返しますが、 items() は必ずモデルインスタンスを返す必要はありません。Django モデルを使用することで、いくつかの機能が「タダ」で提供されますが、 ... ... temaps import Sitemap from blog.models import Entry class BlogSitemap ( Sitemap ): changefreq = "never" priority = 0.5 def items ( self ): return Entry . objects . filter ( is_draft = False ) def lastmod ( self , obj ): return obj . pub_date 備考: cha ... れ <changefreq> と <priority> 要素に対応するクラス属性です。これらは例の lastmod のように関数として呼び出すことができます。 items() is a method that returns a sequence or QuerySet of objects. The objects returned will get passed to any callable methods ... t. Sitemap クラス リファレンス ¶ class Sitemap [ソース] ¶ サイトマップ Sitemap クラスは以下のメソッドや属性を定義できます: items () [ソース] ¶ Required. A method that returns a sequence or QuerySet of objects. The framework doesn't care what type of o ... ... temaps import Sitemap from blog.models import Entry class BlogSitemap ( Sitemap ): changefreq = "never" priority = 0.5 def items ( self ): return Entry . objects . filter ( is_draft = False ) def lastmod ( self , obj ): return obj . pub_date 備考: cha ... れ <changefreq> と <priority> 要素に対応するクラス属性です。これらは例の lastmod のように関数として呼び出すことができます。 items() is a method that returns a sequence or QuerySet of objects. The objects returned will get passed to any callable methods ... t. Sitemap クラス リファレンス ¶ class Sitemap [ソース] ¶ サイトマップ Sitemap クラスは以下のメソッドや属性を定義できます: items () [ソース] ¶ Required. A method that returns a sequence or QuerySet of objects. The framework doesn't care what type of o ... ... ans オプション引数を参照)。 Paginator. orphans ¶ Optional. Use this when you don't want to have a last page with very few items. If the last page would normally have a number of items less than or equal to orphans , then those items will be added to ... the previous page (which becomes the last page) instead of leaving the items on a page by themselves. For example, with 23 items, per_page=10 , and orphans=3 , there will be two pages; the first page ... with 10 items and the second (and last) page with 13 items. orphans defaults to zero, which means pages are never combined and the last ... ... ans オプション引数を参照)。 Paginator. orphans ¶ Optional. Use this when you don't want to have a last page with very few items. If the last page would normally have a number of items less than or equal to orphans , then those items will be added to ... the previous page (which becomes the last page) instead of leaving the items on a page by themselves. For example, with 23 items, per_page=10 , and orphans=3 , there will be two pages; the first page ... with 10 items and the second (and last) page with 13 items. orphans defaults to zero, which means pages are never combined and the last ... ... on read-only fields in the admin ( #33077 ). Fixed a regression in Django 3.2 that caused incorrect selection of items across all pages when actions were placed both on the top and bottom of the admin change-list view ( #33083 ). 目次 Django ... 連キーワード Fixed caused incorrect admin リリースノート October fixes bugs バグ 修正 links read fields regression selection items across pages actions were placed bottom change list view クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... t_template_names() ] template_name_suffix メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_queryset() get_paginator() head() http_method_not_allowed() paginate_queryset() render_to_response() setup() Y ... ear() ] year_format [ get_year_format() ] メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_queryset() get_paginator() head() http_method_not_allowed() paginate_queryset() render_to_response() setup() M ... ear() ] year_format [ get_year_format() ] メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_queryset() get_next_month() get_paginator() get_previous_month() head() http_method_not_allowed() paginate_que ... ... t_template_names() ] template_name_suffix メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_queryset() get_paginator() head() http_method_not_allowed() paginate_queryset() render_to_response() setup() Y ... ear() ] year_format [ get_year_format() ] メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_queryset() get_paginator() head() http_method_not_allowed() paginate_queryset() render_to_response() setup() M ... ear() ] year_format [ get_year_format() ] メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_queryset() get_next_month() get_paginator() get_previous_month() head() http_method_not_allowed() paginate_que ... ... on read-only fields in the admin ( #33077 ). Fixed a regression in Django 3.2 that caused incorrect selection of items across all pages when actions were placed both on the top and bottom of the admin change-list view ( #33083 ). 目次 Django ... go Fixed caused incorrect admin リリースノート October fixes two bugs バグ 修正 bug links read fields regression selection items across 関連するページ Django 2.2.6 リリースノート Django 1.11.9 リリースノート Django 4.0.2 リリースノート Django 6.1.1 re ... 2026年10月08日