... sorting an admin change list based on a callable attributes in list_display . A fix to the application of autoescaping for literal strings passed to the join template filter. Previously, literal strings passed to join were automatically escaped, contrar ... y to the documented behavior for autoescaping and literal strings . Literal strings passed to join are no longer automatically escaped, meaning you must now manually escape them; t ... ... . Those attributes are now public methods. Fixed the join filter's escaping behavior The join filter no longer escapes the literal value that is passed in for the connector. This is backwards incompatible for the special situation of the literal string ... ... View" %} {% comment %} Translators: Short intro blurb {% endcomment %} < p > {% blocktranslate %} A multiline translatable literal. {% endblocktranslate %} </ p > または 一行コメント構文 {# ... ... #} で: {# Translators: Label of a button that triggers ... id "View" msgstr "" #. Translators: Short intro blurb # path/to/template/file.html:13 msgid "" "A multiline translatable" "literal." msgstr "" # ... #. Translators: Label of a button that triggers search # path/to/template/file.html:100 msgid "Go" msgst ... レーズを複数形にするインターフェースを提供します: const objectCount = 1 // or 0, or 2, or 3, ... const string = ngettext ( 'literal for the singular case' , 'literal for the plural case' , objectCount ); interpolate interpolate 関数は表示形式の文字列の動 ... ... ng the object. Translations and comments in templates Extraction of translations after comments Extraction of translatable literals from templates with the makemessages command now correctly detects i18n constructs when they are located after a {# / #} ... -type comment on the same line. E.g.: {# A comment #} {% trans "This literal was incorrectly ignored. Not anymore" %} Location of translator comments テンプレートにおける翻訳者のためのコメント specif ... truncated; on Oracle, an exception is generated. No database change is needed for SQLite or PostgreSQL databases. Percent literals in cursor.execute queries When you are running raw SQL queries through the cursor.execute method, the rule about doubling ... ... を阻止します。たとえば、以下のような式では TemplateSyntaxError が発生します: {% include "template.html" tvar = "Some string literal with %} in it." %} {% with tvar = "Some string literal with %} in it." %}{% endwith %} フィルタの引数に予約済みのシーケンス ... ... loaded using the ORM. The method allows customizing model loading behavior. extra(select={...}) now allows you to escape a literal %s sequence using %%s . Custom Lookups can now be registered using a decorator pattern. The new Transform.bilateral attrib ... ne instead of LANGUAGE_CODE when translations are temporarily deactivated. When a translation doesn't exist for a specific literal, the fallback is now taken from the LANGUAGE_CODE language (instead of from the untranslated msgid message). The name fiel ... ... url tag. Prior to Django 1.3, syntax like {% url myview %} was interpreted incorrectly (Django considered "myview" to be a literal name of a view, not a template variable named myview ). Django 1.3 and above introduced the {% load url from future %} syn ... ... ラルと自動エスケープ 先に説明したように、フィルタの引数は文字列であってもかまいません: {{ data | default :"This is a string literal." }} 文字列リテラルは、すべて自動エスケープ されずに テンプレート内に挿入され、 safe フィルタを通過したかのように動作します ... ... tends tag used a buggy method of parsing arguments, which could lead to it erroneously considering an argument as a string literal when it wasn't. It now uses parser.compile_filter , like other tags. The internals of the tag aren't part of the official ... ... なくインラインで記述できるように、コンテキストマネージャを返します。 with self . assertRaisesMessage ( ValueError , "invalid literal for int()" ): int ( "a" ) SimpleTestCase. assertWarnsMessage ( expected_warning , expected_message , callable , * args , * ... 2026年10月08日