per page, with , order by , clip by
Results of 1 - 10 of about 12 for icontains (0.012 sec.)
Django 5.0.4 リリースノート 11974
Django 5.0.4 リリースノート 2024年4月3日 Django 5.0.4 では、5.0.3 におけるいくつかのバグを修正しました。 バグ修正 Django 5.0 で db_default の式を持つフィールドで Model.full_clean() がクラッシュするバグを修正しました。その結果、 Model.full_c ... 問題を修正しました ( #35344 ). Django 5.0 におけるバグを1つ修正しました。このバグは、 GeneratedField が __contains または __icontains ルックアップに依存しているか、 "%" を含む Value を使用している場合に、マイグレーションがクラッシュする原因になっていました ...
https://man.mtool.work/django/6.1/releases/5.0.4.html
検索 11974
検索 ウェブアプリケーションの一般的なタスクは、ユーザーからの入力を用いてデータベース内のデータを検索することです。簡単なケースなら、オブジェクトのリストをカテゴリごとにフィルタリングすることで実現できるかもしれません。しかし、もっと複雑なユ ... に弱い解決方法です。なぜなら、ユーザーが著者名の正確な部分文字列を知っている必要があるからです。case-insensitive なマッチ ( icontains ) を利用すれば少しはましになりますが、ほとんど違いはありません。 データベースが持つ高度な比較関数 PostgreSQL を使っている場 ... 英語以外の名前を扱う場合、さらなる改善は アクセントなし比較 を使うことです: >>> Author . objects . filter ( name__unaccent__icontains = "Helen" ) [<Author: Helen Mirren>, <Author: Helena Bonham Carter>, <Author: Hélène Joy>] これには別の問題があります。異な ...
https://man.mtool.work/django/6.1/topics/db/search.html
Django 1.11.1 リリースノート 10860
Django 1.11.1 リリースノート May 6, 2017 Django 1.11.1 adds a minor feature and fixes several bugs in 1.11. Allowed disabling server-side cursors on PostgreSQL The change in Django 1.11 to make QuerySet.iterator() use server-side cursors on ... akemigrations will create a migration to recreate the index with the correct name ( #28051 ). Fixed a crash when using a __icontains lookup on a ArrayField ( #28038 ). EmailMessage の attachments 引数に2値タプルを使用した際のクラッシュを修正しました ( #28 ...
https://man.mtool.work/django/6.1/releases/1.11.1.html
クエリを作成する 9763
クエリを作成する 一度 データモデル を作成すれば、Django はデータオブジェクトの作成、取得、更新および削除を行えるようにデータベースを抽象化した API を自動的に提供します。本ドキュメントではこの API をどのように用いるかを説明します。多様なモデ ... e__startswith = "What" ) >>> q = q . filter ( pub_date__lte = datetime . date . today ()) >>> q = q . exclude ( body_text__icontains = "food" ) >>> print ( q ) この例ではデータベースに3回アクセスしているように見えますが、実際にアクセスしているのは、最終行 ... on honored' にはマッチしても 'today lennon honored' にはマッチしないことに注意してください。 case-insensitive バージョンの icontains もあります。 startswith と endswith それぞれ starts-with と ends-with 検索を行います。case-insensitive バージョン istartsw ... __pk implies __id__exact LIKE 文の中ではパーセント記号とアンダースコアがエスケープされる LIKE SQL文 ( iexact , contains , icontains , startswith , istartswith , endswith , iendswith ) に相当するフィールドルックアップでは、 LIKE 文で使用される2つの特殊文字 ...
https://man.mtool.work/django/6.1/topics/db/queries.html
ルックアップ API リファレンス 8649
ルックアップ API リファレンス このドキュメントには、データベースクエリの WHERE 句を構築するための Django API であるルックアップの API リファレンスがあります。ルックアップの 使い方 については クエリを作成する を、新しいルックアップの 作り方 ... riends__first_name... ); トランスフォーム(変換)部分(省略可) ( lower__first3chars__reversed など); ルックアップ部分 ( __icontains など)。省略した場合のデフォルトは __exact です。 登録API Django は RegisterLookupMixin を使って、自分自身やそのインスタンス ...
https://man.mtool.work/django/6.1/ref/models/lookups.html
カスタムのルックアップを書く 8101
カスタムのルックアップを書く Django には (たとえば exact や icontains などの) フィルタリングを行う 組み込みのルックアップ がたくさんあります。このドキュメントでは、カスタムルックアップを作る方法や、既存のルックアップの動作を変更する方法につ ...
https://man.mtool.work/django/6.1/howto/custom-lookups.html
Django の admin サイト 8101
Django の admin サイト Django のパワフルな特徴の1つは、自動的に生成される admin インタフェースです。あなたのモデルクラスからメタデータを読み取り、モデル中心のインタフェースを提供します。このインタフェースのおかげで、ユーザはあなたのサイトの ... ery into search terms and returns all objects that contain each of them in at least one of search_fields . By default, the icontains lookup is used for text fields. For non-text fields with an explicit lookup (e.g., age__exact ), the specified lookup is u ... L の WHERE 句と等価な処理を行います。 WHERE ( first_name ILIKE '%john winston%' OR last_name ILIKE '%john winston%' ) もし icontains ルックアップを使用したくない場合は、フィールドに追加することで任意のルックアップを使用できます。例えば、 search_fields を ... す。これはフィールドに __<lookup> を追加するのと同等です。 プレフィックス ルックアップ ^ istartswith = iexact @ search None icontains 検索方法をカスタムする必要がある場合は、 ModelAdmin.get_search_results() を使って追加的もしくは代替の検索方法を提供できます ...
https://man.mtool.work/django/6.1/ref/contrib/admin/
索引 7552
索引 記号 | _ | 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 コマン ... ains hstorefield.has_any_keys hstorefield.has_key hstorefield.has_keys hstorefield.key hstorefield.keys hstorefield.values icontains iendswith iexact in intersects iregex isempty isnull iso_week_day iso_year istartswith isvalid jsonfield.contained_by json ... (Sitemap の属性) i18n() (django.template.context_processors モジュール) i18n_patterns() (django.conf.urls.i18n モジュール) icontains field lookup type id (TaskResult の属性) id_for_label (BoundField の属性) id_for_label() (Widget のメソッド) identify_epsg ...
https://man.mtool.work/django/6.1/genindex.html
PostgreSQL 固有のモデルフィールド 7552
PostgreSQL 固有のモデルフィールド これらのフィールドは全て django.contrib.postgres.fields モジュールから利用できます。 これらのフィールドにインデックスを付ける Index と Field.db_index は両方とも B-tree インデックスを作成しますが、複雑なデー ... する場合は、代わりに hstorefield.contains ルックアップを使用する必要があります。 注釈 キーのトランスフォームは、 contains 、 icontains 、 endswith 、 iendswith 、 iexact 、 regex 、 iregex 、 startswith 、および istartswith ルックアップとも連結できます。 警 ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/fields.html
Django 1.7 リリースノート 7552
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... le to write custom lookups and transforms for the ORM. Custom lookups work just like Django's built-in lookups (e.g. lte , icontains ) while transforms are a new concept. The django.db.models.Lookup class provides a way to add lookup operators for model f ...
https://man.mtool.work/django/6.1/releases/1.7.html
PREV 1 2 NEXT