per page, with , order by , clip by
Results of 1 - 10 of about 10 for deconstruct (0.006 sec.)
カスタムのモデルフィールドを作成する 13282
カスタムのモデルフィールドを作成する はじめに モデルリファレンス ドキュメントでは、Djangoの標準フィールドクラスである、 CharField や、 DateField などの使い方を説明しています。多くの場合、これらのクラスがあれば十分です。ただし、Djangoのバージ ... 詳細については、 フィールドのドキュメント を参照してください。 フィールドの解体 __init__() メソッドとは対照的なものとして、 deconstruct() メソッドがあります。これは モデルのマイグレーション 中に使用されるもので、新しいフィールドのインスタンスを取得する方法、 ... するためにどの引数を __init__() に渡すかを指示します。 継承元のフィールドの上に追加のオプションを追加していない場合、新しい deconstruct() メソッドを記述する必要はありません。 ただし、 __init__() で渡される引数を変更する場合( HandField のように)、渡される値 ... を補足する必要があります。 deconstruct() 関数は4要素のタプルを返します。それは、フィールドの属性、インポートするフィールドクラスのフルパス、位置引数(リスト型)、 ...
https://man.mtool.work/django/6.1/howto/custom-model-fields.html
マイグレーション 10601
マイグレーション マイグレーション (Migrations) は、Django でモデルに対して行った変更 (フィールドの追加やモデルの削除など) をデータベーススキーマに反映させる方法です。大抵のマイグレーションは自動で行われるものの、いつマイグレーションが作られ ... "hint" : "Use GenericIPAddressField instead." , "id" : "fields.E900" , # pick a unique ID for your field. } __init__() 、 deconstruct() 、 get_internal_type() などのデータベースマイグレーションで動作するために必要なフィールドのメソッドは残しておく必要があり ... れていないメソッド 任意のクラスへのリファレンス (ただし、モジュールのトップレベルのスコープにいなければならない) カスタムの deconstruct() メソッドを持つすべてのオブジェクト ( 以下を参照 ) Changed in Django 6.0: Serialization support for zoneinfo.ZoneInfo ins ... 値がマイグレーションでどのように表示されるかを示す文字列と、マイグレーションで必要なインポートのセットを返す必要があります。 deconstruct() メソッドを追加する 自作のカスタムクラスに deconstruct() メソッドを実装することで、インスタンスを Django にシリアライズさ ...
https://man.mtool.work/django/6.1/topics/migrations.html
Django 1.7 リリースノート 9564
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... and to enable easier addition of composite keys in future releases of Django, the Field API now has a new required method: deconstruct() . This method takes no arguments, and returns a tuple of four items: name : The field's attribute name on its parent mod ... es. This change should not affect you unless you write custom Field subclasses; if you do, you may need to reimplement the deconstruct() method if your subclass changes the method signature of __init__ in any way. If your field just inherits from a built-in ... Django field and doesn't override __init__ , no changes are necessary. If you do need to override deconstruct() , a good place to start is the built-in Django fields ( django/db/models/fields/__init__.py ) as several fields, includi ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.11.5 リリースノート 8956
Django 1.11.5 リリースノート September 5, 2017 Django 1.11.5 fixes a security issue and several bugs in 1.11.4. CVE-2017-12794: Possible XSS in traceback section of technical 500 debug page In older versions, HTML autoescaping was disabled ... t to LogoutView , for equivalence with the function-based logout() view ( #28513 ). Omitted pages_per_range from BrinIndex.deconstruct() if it's None ( #25809 ). Fixed a regression where SelectDateWidget localized the years in the select box ( #28530 ). Fix ...
https://man.mtool.work/django/6.1/releases/1.11.5.html
Django 2.0.3 リリースノート 8956
Django 2.0.3 リリースノート 2018年3月6日 Django 2.0.3 では、2.0.2 にあった2つのセキュリティの問題と、いくつかのバグを修正しました。また、Transifex の最新の翻訳文字列も組み込まれました。 CVE-2018-7536: urlize と urlizetrunc テンプレートフィル ... n time picker widget displaying "undefined" ( #29109 ). Fixed crash with QuerySet.order_by(Exists(...)) ( #29118 ). Made Q.deconstruct() deterministic with multiple keyword arguments ( #29125 ). You may need to modify Q 's in existing migrations, or accept ...
https://man.mtool.work/django/6.1/releases/2.0.3.html
Django 1.7.2 リリースノート 8134
Django 1.7.2 リリースノート January 2, 2015 Django 1.7.2 fixes several bugs in 1.7.1. Additionally, Django's vendored version of six, django.utils.six , has been upgraded to the latest release (1.9.0). バグ修正 Fixed migration's renaming of ... nserver crash when socket error message contained Unicode characters ( #23946 ). Fixed serialization of type when adding a deconstruct() method ( #23950 ). Prevented the django.contrib.auth.middleware.SessionAuthenticationMiddleware from setting a "Vary: Co ... t (Unicode), since that is required on Python 3 for interpolation. Removed conversion of related_name to text in migration deconstruction ( #23455 and #23982 ). Enlarged the sizes of tablespaces which are created by default for testing on Oracle (the main t ...
https://man.mtool.work/django/6.1/releases/1.7.2.html
カスタムのストレージクラスを書く 7919
カスタムのストレージクラスを書く たとえばリモートシステム上にファイルを保存する場合、カスタムストレージクラスを定義することで、カスタムファイルストレージを作成することが可能です。使用するには以下の手順に従ってください。 カスタムストレージシ ... クラスがローカルファイルストレージを提供する場合は、 path() メソッドをオーバーライドする必要があります。 ストレージクラスは deconstructible でなければならないので、マイグレーションのフィールドで使われたときにそれはシリアライズすることができます。フィールドが ... それ自身 serializable である引数を持つ限り、これのために django.utils.deconstruct.deconstructible クラスデコレータを使うことができます (それが FileSystemStorage で Django が使うものです)。 デフォルトにおい ...
https://man.mtool.work/django/6.1/howto/custom-file-storage.html
バリデータ (Validator) 7723
バリデータ (Validator) バリデータを記述する バリデータ (validator) は呼び出し可能なオブジェクトで、値を受け取り、ある基準を満たしていない場合に ValidationError を発生させます。バリデータは異なるタイプのフィールド間でバリデーションロジックを ... 例で、このテクニックを使っています。クラスベースのバリデータが validators モデルフィールドのオプション内で使用されるときは、 deconstruct() と __eq__() メソッドを追加して マイグレーションフレームワークによりシリアライズ可能 になるようにしてください。 バリデータ ...
https://man.mtool.work/django/6.1/ref/validators.html
索引 7097
索引 記号 | _ | 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 コマン ... .core.validators のクラス) decoder (JSONField の属性) , [1] decompress() (MultiWidget のメソッド) (RangeWidget のメソッド) deconstruct() (Field のメソッド) decorator_from_middleware() (django.utils.decorators モジュール) decorator_from_middleware_with_args( ...
https://man.mtool.work/django/6.1/genindex.html
モデルフィールドリファレンス 7097
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... されていない場合、 TypedChoiceField を使用します。 使い方は モデルフィールドのフォームフィールドの指定 を参照してください。 deconstruct () [ソース] フィールドを再作成するのに十分な情報を持つ4値タプルを返します: モデルのフィールド名。 フィールドのインポートパ ...
https://man.mtool.work/django/6.1/ref/models/fields.html
PREV 1 NEXT