... iews.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseArchiveIndexView django.views.generic.dates.BaseDateListView django.views.generic.list.MultipleObjectMixin django.view ... s.generic.dates.DateMixin django.views.generic.base.View コンテキスト ( django.views.generic.dates.BaseDateListView を通じた) django.views ... これは、すべてのサブクラスのビューに適用されます。 例 myapp/urls.py : from django.urls import path from django.views.generic.dates import ArchiveIndexView from myapp.models import Article urlpatterns = [ path ( "archive/" , ArchiveIndexView . as_view ( ... ... iews.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseArchiveIndexView django.views.generic.dates.BaseDateListView django.views.generic.list.MultipleObjectMixin django.view ... s.generic.dates.DateMixin django.views.generic.base.View コンテキスト ( django.views.generic.dates.BaseDateListView を通じた) django.views ... これは、すべてのサブクラスのビューに適用されます。 例 myapp/urls.py : from django.urls import path from django.views.generic.dates import ArchiveIndexView from myapp.models import Article urlpatterns = [ path ( "archive/" , ArchiveIndexView . as_view ( ... ... o.contrib.admin のクラス) aprefetch_related_objects() (django.db.models モジュール) ArchiveIndexView (django.views.generic.dates のクラス) (組み込みクラス) Area (django.contrib.gis.db.models.functions のクラス) (django.contrib.gis.measure のクラス) ar ... SystemStorage の属性) (InMemoryStorage の属性) base_widget (RangeWidget の属性) BaseArchiveIndexView (django.views.generic.dates のクラス) BaseBackend (django.contrib.auth.backends のクラス) BaseCommand (django.core.management のクラス) BaseConstraint ... dels のクラス) BaseDatabaseSchemaEditor (django.db.backends.base.schema のクラス) BaseDateDetailView (django.views.generic.dates のクラス) BaseDateListView (django.views.generic.dates のクラス) BaseDayArchiveView (django.views.generic.dates のクラス) ... ... o.contrib.admin のクラス) aprefetch_related_objects() (django.db.models モジュール) ArchiveIndexView (django.views.generic.dates のクラス) (組み込みクラス) Area (django.contrib.gis.db.models.functions のクラス) (django.contrib.gis.measure のクラス) ar ... SystemStorage の属性) (InMemoryStorage の属性) base_widget (RangeWidget の属性) BaseArchiveIndexView (django.views.generic.dates のクラス) BaseBackend (django.contrib.auth.backends のクラス) BaseCommand (django.core.management のクラス) BaseConstraint ... dels のクラス) BaseDatabaseSchemaEditor (django.db.backends.base.schema のクラス) BaseDateDetailView (django.views.generic.dates のクラス) BaseDateListView (django.views.generic.dates のクラス) BaseDayArchiveView (django.views.generic.dates のクラス) ... ... in date template filter ¶ If an application allows users to specify an unvalidated format for dates and passes this format to the date filter, e.g. {{ last_updated|date:user_date_format }} , then a malicious user could obt ... ility template application allows user instead リリースノート November fixes security issue leak users specify unvalidated dates passes last malicious クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... y notes . Time zone aware aggregation ¶ The support for time zones introduced in Django 1.4 didn't work well with QuerySet.dates() : aggregation was always performed in UTC. This limitation was lifted in Django 1.6. Use QuerySet.datetimes() to perform ... ed to work with the standard library's doctest module (or converted to unittest -compatible tests). If you wish to delay updates to your test suite, you can set your TEST_RUNNER setting to django.test.simple.DjangoTestSuiteRunner to fully restore the ... sql_tzinfo_to_sql . Addition of QuerySet.datetimes() ¶ When the time zone support added in Django 1.4 was active, QuerySet.dates() lookups returned unexpected results, because the aggregation was performed in UTC. To fix this, Django 1.6 introduces a ... ... y notes . Time zone aware aggregation ¶ The support for time zones introduced in Django 1.4 didn't work well with QuerySet.dates() : aggregation was always performed in UTC. This limitation was lifted in Django 1.6. Use QuerySet.datetimes() to perform ... ed to work with the standard library's doctest module (or converted to unittest -compatible tests). If you wish to delay updates to your test suite, you can set your TEST_RUNNER setting to django.test.simple.DjangoTestSuiteRunner to fully restore the ... sql_tzinfo_to_sql . Addition of QuerySet.datetimes() ¶ When the time zone support added in Django 1.4 was active, QuerySet.dates() lookups returned unexpected results, because the aggregation was performed in UTC. To fix this, Django 1.6 introduces a ... ... JavaScriptCatalog ( #27418 ). Fixed a regression in the timesince and timeuntil filters that caused incorrect results for dates in a leap year ( #27637 ). Fixed a regression where collectstatic overwrote newer files in remote storages ( #27658 ). 目次 ... ... JavaScriptCatalog ( #27418 ). Fixed a regression in the timesince and timeuntil filters that caused incorrect results for dates in a leap year ( #27637 ). Fixed a regression where collectstatic overwrote newer files in remote storages ( #27658 ). 目次 ... ... list() は JSONField のキーを変換する際に "true" , "false" , and "null" の代わりに True , False , None の文字列を返します。 dates() ¶ dates ( field , kind , order = 'ASC' ) ¶ この QuerySet は datetime.date オブジェクトのリストとして評価され、 QuerySet ... ルトは 'ASC' で、 'ASC' または 'DESC' のいずれかを指定します。これは結果のソート方法を指定します。 例: >>> Entry . objects . dates ( "pub_date" , "year" ) [datetime.date(2005, 1, 1)] >>> Entry . objects . dates ( "pub_date" , "month" ) [datetime.date(20 ... 05, 2, 1), datetime.date(2005, 3, 1)] >>> Entry . objects . dates ( "pub_date" , "week" ) [datetime.date(2005, 2, 14), datetime.date(2005, 3, 14)] >>> Entry . objects . dates ( "pub_date" ... 2026年10月08日