per page, with , order by , clip by
Results of 1 - 10 of about 14 for prep (0.008 sec.)
Django 1.2 リリースノート 14494
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... of custom Field subclasses should be aware that a number of methods have had a change in prototype, detailed under get_db_prep_*() methods on Field , below. The internals of template tags have changed somewhat; authors of custom template tags that n ... kwards compatible imports in the old locations, which are deprecated and will cease to be supported in Django 1.4). get_db_prep_*() methods on Field Prior to Django 1.2, a custom Field had the option of defining several functions to support conversio ... ustom field might look something like: class CustomModelField ( models . Field ): ... def db_type ( self ): ... def get_db_prep_save ( self , value ): ... def get_db_prep_value ( self , value ): ... def get_db_prep_lookup ( self , lookup_type , value ...
https://man.mtool.work/django/6.1/releases/1.2.html
カスタムのモデルフィールドを作成する 10275
カスタムのモデルフィールドを作成する はじめに モデルリファレンス ドキュメントでは、Djangoの標準フィールドクラスである、 CharField や、 DateField などの使い方を説明しています。多くの場合、これらのクラスがあれば十分です。ただし、Djangoのバージ ... トをクエリ変数に変換する データベースを使用するには両方の変換が必要なので、 from_db_value() をオーバーライドする場合は、 get_prep_value() もオーバーライドして Python オブジェクトをクエリの値に戻す必要があります。 例えば: class HandField ( models . Fiel ... d ): # ... def get_prep_value ( self , value ): return "" . join ( [ "" . join ( l ) for l in ( value . north , value . east , value . south , val ... ue . west )] ) 警告 カスタムフィールドでMySQLの CHAR 、 VARCHAR 、 TEXT 型を使用する場合は、 get_prep_value() が常に文字列型を返すようにする必要があります。MySQL はこれらの型に対して整数を指定してクエリを実行したとき、柔軟で ...
https://man.mtool.work/django/6.1/howto/custom-model-fields.html
モデルフィールドリファレンス 9470
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... はデフォルトの文字数 50 を使います。 暗黙的に Field.db_index を True にセットします。 It is often useful to automatically prepopulate a SlugField based on the value of some other value. You can do this automatically in the admin using prepopulated_f ... ngo はフィールドを使ってデータベーステーブルを作成したり ( db_type() )、 Python の型をデータベースにマッピングしたり ( get_prep_value() )、逆にしたり ( from_db_value() ) します。 A field is thus a fundamental piece in different Django APIs, notably t ... のバックエンドの値 -> Python の値) データベースへの保存時 (Python の値 -> データベースのバックエンドの値) クエリでは get_db_prep_value() と get_prep_value() が使用されます: get_prep_value ( value ) [ソース] value はモデルの属性の現在の値で、メソッドは ...
https://man.mtool.work/django/6.1/ref/models/fields.html
Django 1.8.2 リリースノート 8647
Django 1.8.2 リリースノート May 20, 2015 Django 1.8.2 fixes a security issue and several bugs in 1.8.1. Fixed session flushing in the cached_db backend A change to session.flush() in the cached_db session backend in Django 1.8 mistakenly se ... se generation on MySQL when the query's model has a self-referential foreign key ( #24748 ). Implemented ForeignKey.get_db_prep_value() so that ForeignKey s pointing to UUIDField and inheritance on models with UUIDField primary keys work correctly ( ...
https://man.mtool.work/django/6.1/releases/1.8.2.html
Django 4.2.2 リリースノート 8367
Django 4.2.2 リリースノート 2023年6月5日 Django 4.2.2 では、4.2.1 におけるいくつかのバグを修正しました。 バグ修正 Django 4.2 におけるリグレッションを修正しました。これにより、Oracle 上の TextField() / BinaryField() に対する __isnull および ... ングが行われる問題が解消されます ( #34544 )。 Django 4.2 におけるリグレッションに対応し、 JSONField のサブクラスにおける get_prep_value() 呼び出しを復元しました ( #34539 )。 Django 4.2 におけるリグレッションを修正しました。これにより、 QuerySet.defer() ...
https://man.mtool.work/django/6.1/releases/4.2.2.html
Django 1.10 リリースノート 8244
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... h ) # Unsalted MD5 passwords might not have an 'md5$$' prefix: User . objects . filter ( password__length = 32 ) Field.get_prep_lookup() および Field.get_db_prep_lookup() メソッドの削除 これらのいずれかのメソッドを実装していたカスタムフィールドがあっ ... import Field from django.db.models.lookups import Exact class MyField ( Field ): ... class MyFieldExact ( Exact ): def get_prep_lookup ( self ): # do_custom_stuff_for_myfield ... MyField . register_lookup ( MyFieldExact ) django.contrib.gis SpatiaLit ...
https://man.mtool.work/django/6.1/releases/1.10.html
Django の機能廃止のタイムライン 8104
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... notation to specify a database backend (i.e., sqlite3 instead of django.db.backends.sqlite3 ) will be removed. The get_db_prep_save , get_db_prep_value and get_db_prep_lookup methods will have to support multiple databases. The Message model (in dja ...
https://man.mtool.work/django/6.1/internals/deprecation.html
contenttypes フレームワーク 8104
contenttypes フレームワーク Django には contenttypes アプリケーションが含まれており、 Django を使ったプロジェクトにインストールされているすべてのモデルを追跡し、モデルを扱うための高レベルで汎用的なインターフェースを提供します。 概要 content ... 、リレーション先モデルの主キーフィールドと同じ型である必要はありませんが、その主キーの値は、"object_id" フィールドの get_db_prep_value() メソッドによって同じ型に変換可能でなければなりません。 たとえば、 IntegerField または CharField のどちらかの主キー ... 対してジェネリックリレーションを許可したい場合、モデルの "object_id" フィールドには CharField を使用できます。整数は get_db_prep_value() によって文字列に変換できるためです。 最大の柔軟性を得るには、定義された最大長がない TextField を使用できますが、デ ...
https://man.mtool.work/django/6.1/ref/contrib/contenttypes.html
GEOS API 7964
GEOS API 背景 GEOS とは? GEOS stands for Geometry Engine - Open Source , and is a C++ library, ported from the Java Topology Suite . GEOS implements the OpenGIS Simple Features for SQL spatial predicate functions and spatial operators. GEOS ... metry. This representation is specific to PostGIS and is a superset of the OGC WKT standard. [ 1 ] Essentially the SRID is prepended to the WKT representation, for example SRID=4326;POINT(5 23) . 注釈 このプロパティからの出力には、PostGISがそのEWKT表 ... y. length このジオメトリの長さを返します (例: Point の場合は 0、 LineString の長さ、または Polygon の円周)。 GEOSGeometry. prepared このジオメトリの内容の GEOS PreparedGeometry を返します。 PreparedGeometry オブジェクトは、contains、intersects、cover ... s、crosss、disjoint、overlaps、touches、および within の操作に最適化されています。詳細は 準備された (Prepared) ジオメトリ のドキュメントを参照してください。 GEOSGeometry. srs ジオメトリの SRID に対応する SpatialReference オブジェ ...
https://man.mtool.work/django/6.1/ref/contrib/gis/geos.html
Django 5.0 リリースノート 7964
Django 5.0 リリースノート 2023年12月4日 Django 5.0 へようこそ! このリリースノートでは、 バージョン 5.0 の新機能 と、Django 4.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... 要があります: class Char32UUIDField ( models . UUIDField ): def db_type ( self , connection ): return "char(32)" def get_db_prep_value ( self , value , connection , prepared = False ): value = super () . get_db_prep_value ( value , connection , prepar ...
https://man.mtool.work/django/6.1/releases/5.0.html
PREV 1 2 NEXT