... ject {'name': 'margaret smith', 'alias': 'msmith', 'age': 50} 数学関数 ¶ 数学関数の例では、以下のモデルを使用します: class Vector ( models . Model ): x = models . FloatField () y = models . FloatField () Abs ¶ class Abs ( expression , ** extra ) [ソース ... ] ¶ 数値フィールドまたは式の、絶対値を返します。 使用例: >>> from django.db.models.functions import Abs >>> Vector . objects . create ( x =- 0.5 , y = 1.1 ) >>> vector = Vector . objects . annotate ( x_abs = Abs ( "x" ), y_abs = Abs ( "y ... " )) . get () >>> vector . x_abs , vector . y_abs (0.5, 1.1) トランスフォームとして登録することもできます。たとえば: >>> from django.db.models impo ... ... ject {'name': 'margaret smith', 'alias': 'msmith', 'age': 50} 数学関数 ¶ 数学関数の例では、以下のモデルを使用します: class Vector ( models . Model ): x = models . FloatField () y = models . FloatField () Abs ¶ class Abs ( expression , ** extra ) [ソース ... ] ¶ 数値フィールドまたは式の、絶対値を返します。 使用例: >>> from django.db.models.functions import Abs >>> Vector . objects . create ( x =- 0.5 , y = 1.1 ) >>> vector = Vector . objects . annotate ( x_abs = Abs ( "x" ), y_abs = Abs ( "y ... " )) . get () >>> vector . x_abs , vector . y_abs (0.5, 1.1) トランスフォームとして登録することもできます。たとえば: >>> from django.db.models impo ... ... Set [<Entry: Cheese on Toast recipes>, <Entry: Pizza Recipes>]> これにより、データベース内の body_text フィールドから to_tsvector が作成され、検索語 'Cheese' から plainto_tsquery が作成されます。両方ともデフォルトのデータベース検索設定を使用しています。 ... 得されます。 search ルックアップを使用するには、 INSTALLED_APPS に 'django.contrib.postgres' を含める必要があります。 SearchVector ¶ class SearchVector ( * expressions , config = None , weight = None ) [ソース] ¶ 単一のフィールドに対する検索は素晴らしい ... ntry インスタンスは Blog に属しており、 tagline フィールドを持っています。両方のフィールドに対してクエリを行うには、 SearchVector を使用します: >>> from django.contrib.postgres.search import SearchVector >>> Entry . objects . annotate ( ... search = Se ... ... Set [<Entry: Cheese on Toast recipes>, <Entry: Pizza Recipes>]> これにより、データベース内の body_text フィールドから to_tsvector が作成され、検索語 'Cheese' から plainto_tsquery が作成されます。両方ともデフォルトのデータベース検索設定を使用しています。 ... 得されます。 search ルックアップを使用するには、 INSTALLED_APPS に 'django.contrib.postgres' を含める必要があります。 SearchVector ¶ class SearchVector ( * expressions , config = None , weight = None ) [ソース] ¶ 単一のフィールドに対する検索は素晴らしい ... ntry インスタンスは Blog に属しており、 tagline フィールドを持っています。両方のフィールドに対してクエリを行うには、 SearchVector を使用します: >>> from django.contrib.postgres.search import SearchVector >>> Entry . objects . annotate ( ... search = Se ... ... es of Accept-Language headers are cached in order to avoid repetitive parsing. This leads to a potential denial-of-service vector via excessive memory usage if large header values are sent. In order to avoid this vulnerability, the Accept-Language head ... 1日 moderate セキュリティ 問題 修正 ヘッダー 攻撃 可能性 headers cached repetitive parsing leads potential denial service vector クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... es of Accept-Language headers are cached in order to avoid repetitive parsing. This leads to a potential denial-of-service vector via excessive memory usage if large header values are sent. In order to avoid this vulnerability, the Accept-Language head ... 1日 moderate セキュリティ 問題 修正 ヘッダー 攻撃 可能性 headers cached repetitive parsing leads potential denial service vector クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... プレート経由の XSS の可能性 ¶ The {% debug %} template tag didn't properly encode the current context, posing an XSS attack vector. In order to avoid this vulnerability, {% debug %} no longer outputs information when the DEBUG setting is False , and it ... リースノート 1日 medium セキュリティ 問題 修正 テンプレート 経由 可能性 template didn properly encode current posing attack vector order avoid vulnerability longer outputs クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... プレート経由の XSS の可能性 ¶ The {% debug %} template tag didn't properly encode the current context, posing an XSS attack vector. In order to avoid this vulnerability, {% debug %} no longer outputs information when the DEBUG setting is False , and it ... リースノート 1日 medium セキュリティ 問題 修正 テンプレート 経由 可能性 template didn properly encode current posing attack vector order avoid vulnerability longer outputs クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... es of Accept-Language headers are cached in order to avoid repetitive parsing. This leads to a potential denial-of-service vector via excessive memory usage if large header values are sent. In order to avoid this vulnerability, the Accept-Language head ... ... es of Accept-Language headers are cached in order to avoid repetitive parsing. This leads to a potential denial-of-service vector via excessive memory usage if large header values are sent. In order to avoid this vulnerability, the Accept-Language head ... 2026年10月08日