Results of 1 - 4 of about 4 for deconstructible (0.002 sec.)
- カスタムのストレージクラスを書く 11835
- カスタムのストレージクラスを書く たとえばリモートシステム上にファイルを保存する場合、カスタムストレージクラスを定義することで、カスタムファイルストレージを作成することが可能です。使用するには以下の手順に従ってください。 カスタムストレージシ
... クラスがローカルファイルストレージを提供する場合は、 path() メソッドをオーバーライドする必要があります。 ストレージクラスは deconstructible でなければならないので、マイグレーションのフィールドで使われたときにそれはシリアライズすることができます。フィールドがそれ ... 自身 serializable である引数を持つ限り、これのために django.utils.deconstruct.deconstructible クラスデコレータを使うことができます (それが FileSystemStorage で Django が使うものです)。 デフォルトにおいて、以下に示すメ ...
-
https://man.mtool.work/django/6.1/howto/custom-file-storage.html
- Django 1.7.1 リリースノート 9616
- Django 1.7.1 リリースノート October 22, 2014 Django 1.7.1 fixes several bugs in 1.7. バグ修正 Allowed related many-to-many fields to be referenced in the admin ( #23604 ). Added a more helpful error message if you try to migrate an app with
... ialization of type objects in migrations ( #22951 ). Allowed inline and hidden references to admin fields ( #23431 ). The @deconstructible decorator now fails with a ValueError if the decorated object cannot automatically be imported ( #23418 ). Fixed a typo in ...
-
https://man.mtool.work/django/6.1/releases/1.7.1.html
- マイグレーション 8876
- マイグレーション マイグレーション (Migrations) は、Django でモデルに対して行った変更 (フィールドの追加やモデルの削除など) をデータベーススキーマに反映させる方法です。大抵のマイグレーションは自動で行われるものの、いつマイグレーションが作られ
... す。 クラスのコンストラクタのすべての引数がそれ自体でシリアライズ可能である場合には、次のように django.utils.deconstruct の @deconstructible クラスデコレータを使うことで deconstruct() メソッドを追加できます。 from django.utils.deconstruct import deconstructible @ ...
-
https://man.mtool.work/django/6.1/topics/migrations.html
- Django 6.0 release notes 6657
- Django 6.0 release notes December 3, 2025 Welcome to Django 6.0! These release notes cover the new features , as well as some backwards incompatible changes you should be aware of when upgrading from Django 5.2 or earlier. We've begun the d
... g transitioned to normal migrations. Migrations now support serialization of zoneinfo.ZoneInfo instances. Serialization of deconstructible objects now supports keyword arguments with names that are not valid Python identifiers. モデル Constraints now implement ...
-
https://man.mtool.work/django/6.1/releases/6.0.html
PREV
1
NEXT