per page, with , order by , clip by
Results of 1 - 10 of about 88 for lookup (0.016 sec.)
カスタムのルックアップを書く 12868
カスタムのルックアップを書く Django には (たとえば exact や icontains などの) フィルタリングを行う 組み込みのルックアップ がたくさんあります。このドキュメントでは、カスタムルックアップを作る方法や、既存のルックアップの動作を変更する方法につ ... まず最初にルックアップを実装し、続いてDjangoに実装したルックアップを認識させる必要があります。 from django.db.models import Lookup class NotEqual ( Lookup ): lookup_name = "ne" def as_sql ( self , compiler , connection ): lhs , lhs_params = self . proce ... %s " % ( lhs , rhs ), params NotEqual ルックアップを登録するために、ルックアップを有効にしたいフィールドクラスの register_lookup を呼び出す必要があります。今回実装したルックアップは Field クラスの全てのサブクラスに適用できるため、 Field クラスに直接登 ... 録しましょう。 from django.db.models import Field Field . register_lookup ( NotEqual ) ルックアップの登録は、デコレーターパターンを使って行うこともできます。 from django.db.models import Field @Fi ...
https://man.mtool.work/django/6.1/howto/custom-lookups.html
ルックアップ API リファレンス 12761
ルックアップ API リファレンス このドキュメントには、データベースクエリの WHERE 句を構築するための Django API であるルックアップの API リファレンスがあります。ルックアップの 使い方 については クエリを作成する を、新しいルックアップの 作り方 ... ムのルックアップを書く を参照してください。 ルックアップAPIには2つのコンポーネントがあります。ルックアップを登録する RegisterLookupMixin クラスと、ルックアップとして登録するためにクラスが実装しなければならないメソッドのセットである クエリ式 API です。 Dj ... ango には、クエリ式 API に従う 2 つの基本クラスがあり、すべての Django 組み込みルックアップはここから派生しています: Lookup : フィールドをルックアップします (例えば field_name__exact の exact ) Transform : フィールドをトランスフォーム(変換)しま ... _reversed など); ルックアップ部分 ( __icontains など)。省略した場合のデフォルトは __exact です。 登録API Django は RegisterLookupMixin を使って、自分自身やそのインスタンスにルックアップを登録するインターフェイスをクラスに与えます。代表的な例は Field で ...
https://man.mtool.work/django/6.1/ref/models/lookups.html
索引 12654
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... o.contrib.postgres.aggregates のクラス) ArrayField (django.contrib.postgres.fields のクラス) arrayfield.contained_by field lookup type arrayfield.contains field lookup type arrayfield.index field lookup type arrayfield.len field lookup type arrayfield. ... overlap field lookup type arrayfield.slice field lookup type ArraySubquery (django.contrib.postgres.expressions のクラス) as_data() (Form.error ... chiveView (django.views.generic.dates のクラス) BaseYearArchiveView (django.views.generic.dates のクラス) bbcontains field lookup type bboverlaps field lookup type BigAutoField (django.db.models のクラス) BigIntegerField (django.db.models のクラス) Big ...
https://man.mtool.work/django/6.1/genindex.html
データベース関数 10160
データベース関数 The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggregations, or filters in Django. Functions are also expressions , so they can be used and combined ... = True , blank = True ) end_time = models . TimeField ( null = True , blank = True ) Extract class Extract ( expression , lookup_name = None , tzinfo = None , ** extra ) [ソース] 日時の構成要素を数値として取り出します。 DateField , DateTimeField , Tim ... eField または DurationField を表す expression と、 lookup_name を受け取り、 lookup_name が参照する日付の部分を IntegerField として返します。Django は通常データベースの extract 関数 ... を使うので、データベースがサポートしている lookup_name を使うことができます。通常 zoneinfo によって提供される tzinfo サブクラスを渡すと、特定のタイムゾーンの値を抽出できます ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
Django 3.2.14 リリースノート 8257
Django 3.2.14 リリースノート 2022年7月4日 Django 3.2.14 では 3.2.13 における深刻度 "high" のセキュリティの問題を修正しました。 CVE-2022-34265: Potential SQL injection via Trunc(kind) and Extract(lookup_name) arguments Trunc() and Extract() ... database functions were subject to SQL injection if untrusted data was used as a kind / lookup_name value. Applications that constrain the lookup name and kind choice to a known safe list are unaffected. ...
https://man.mtool.work/django/6.1/releases/3.2.14.html
Django 4.0.6 リリースノート 8257
Django 4.0.6 リリースノート 2022年7月4日 Django 4.0.6 では 4.0.5 における深刻度 "high" のセキュリティの問題を修正しました。 CVE-2022-34265: Potential SQL injection via Trunc(kind) and Extract(lookup_name) arguments Trunc() and Extract() dat ... abase functions were subject to SQL injection if untrusted data was used as a kind / lookup_name value. Applications that constrain the lookup name and kind choice to a known safe list are unaffected. ...
https://man.mtool.work/django/6.1/releases/4.0.6.html
Django 1.10 リリースノート 8203
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... ジン (full text search engine) が利用可能になりました。リレーショナルデータベース上の複数のフィールドに渡る検索を行い、他の lookup による検索結果と組み合わせ、別の言語設定や重み付けを利用して、検索結果を関連性でランク付けすることができます。 また、トライ ... グラム (trigram) もサポートするようになりました。これを利用するには、 trigram_similar lookup、 TrigramSimilarity 、 TrigramDistance 式を使ってください。 新しいスタイルのミドルウェア A new style of middleware is intro ... 一方、 ModelBackend および RemoteUserBackend は inactive なユーザーを拒否するようになりました。 django.contrib.gis Distance lookups は、distance value パラメータとして、式 (expression) を受け付けるようになりました。 The new GEOSGeometry.unary_union prop ...
https://man.mtool.work/django/6.1/releases/1.10.html
Django 6.1.2 release notes 7654
Django 6.1.2 release notes October 6, 2026 Django 6.1.2 fixes one security issue with severity "low", three security issues with severity "moderate", and provides a fix for an insufficient security mitigation in 6.1. It also fixes one data ... To mitigate this vulnerability, language codes longer than 500 characters are now rejected or truncated before the cached lookup. This issue has severity "low" according to the Django security policy . CVE-2026-84429: Potential denial-of-service vulne ... ue has severity "moderate" according to the Django security policy . CVE-2026-87890: Potential request forgery via spatial lookup byte values Spatial lookups accepted raster values provided as bytes without requiring them to be explicitly wrapped in GD ... an external raster source. This could cause GDAL to issue network requests as the Django process user while preparing the lookup. This issue could be exploited by applications that passed attacker-controlled bytes directly to a spatial lookup. It was ...
https://man.mtool.work/django/6.1/releases/6.1.2.html
Django 5.2.18 release notes 7546
Django 5.2.18 release notes October 6, 2026 Django 5.2.18 fixes one security issue with severity "low", three security issues with severity "moderate", and provides a fix for an insufficient security mitigation in 5.2.17. It also fixes one ... To mitigate this vulnerability, language codes longer than 500 characters are now rejected or truncated before the cached lookup. This issue has severity "low" according to the Django security policy . CVE-2026-84429: Potential denial-of-service vulne ... ue has severity "moderate" according to the Django security policy . CVE-2026-87890: Potential request forgery via spatial lookup byte values Spatial lookups accepted raster values provided as bytes without requiring them to be explicitly wrapped in GD ... an external raster source. This could cause GDAL to issue network requests as the Django process user while preparing the lookup. This issue could be exploited by applications that passed attacker-controlled bytes directly to a spatial lookup. It was ...
https://man.mtool.work/django/6.1/releases/5.2.18.html
Django 6.0.9 release notes 7546
Django 6.0.9 release notes October 6, 2026 Django 6.0.9 fixes one security issue with severity "low", three security issues with severity "moderate", and provides a fix for an insufficient security mitigation in 6.0.8. It also fixes one dat ... To mitigate this vulnerability, language codes longer than 500 characters are now rejected or truncated before the cached lookup. This issue has severity "low" according to the Django security policy . CVE-2026-84429: Potential denial-of-service vulne ... ue has severity "moderate" according to the Django security policy . CVE-2026-87890: Potential request forgery via spatial lookup byte values Spatial lookups accepted raster values provided as bytes without requiring them to be explicitly wrapped in GD ... an external raster source. This could cause GDAL to issue network requests as the Django process user while preparing the lookup. This issue could be exploited by applications that passed attacker-controlled bytes directly to a spatial lookup. It was ...
https://man.mtool.work/django/6.1/releases/6.0.9.html
PREV 1 2 3 4 5 6 7 8 9 NEXT