per page, with , order by , clip by
Results of 1 - 10 of about 218 for delete (0.011 sec.)
フォームセット (Formset) — Django 6.1 ドキュメント 11337
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームセット (Formset) ¶ class BaseFormSet [ソース] ¶ フォームセットは、同じページで複数のフォームを扱うための抽象レイヤーです。データグリッドに例 ... ントする必要があります。 一方、既存のオブジェクトの削除を許可するためにJavaScriptを使用している場合は、 POST データに form-#-DELETE を含めることで、削除対象のマークが適切に削除されていることを確認する必要があります。 すべてのフォームがそれにかかわらず PO ... rmset unless each form is valid on its own ... return ... titles = set () ... for form in self . forms : ... if self . can_delete and self . _should_delete_form ( form ): ... continue ... title = form . cleaned_data . get ( "title" ) ... if title in ti ... }) ... >>> ArticleFormSet = formset_factory ( ... ArticleForm , formset = BaseArticleFormSet , can_order = True ... ) can_delete ¶ BaseFormSet. can_delete ¶ デフォルト値: False 削除するフォームを選択できるフォームセットを作成できます: >>> from django. ...
https://man.mtool.work/django/6.1/topics/forms/formsets.html
フォームセット (Formset) — Django 6.1 ドキュメント 11264
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームセット (Formset) ¶ class BaseFormSet [ソース] ¶ フォームセットは、同じページで複数のフォームを扱うための抽象レイヤーです。データグリッドに例 ... ントする必要があります。 一方、既存のオブジェクトの削除を許可するためにJavaScriptを使用している場合は、 POST データに form-#-DELETE を含めることで、削除対象のマークが適切に削除されていることを確認する必要があります。 すべてのフォームがそれにかかわらず PO ... rmset unless each form is valid on its own ... return ... titles = set () ... for form in self . forms : ... if self . can_delete and self . _should_delete_form ( form ): ... continue ... title = form . cleaned_data . get ( "title" ) ... if title in ti ... }) ... >>> ArticleFormSet = formset_factory ( ... ArticleForm , formset = BaseArticleFormSet , can_order = True ... ) can_delete ¶ BaseFormSet. can_delete ¶ デフォルト値: False 削除するフォームを選択できるフォームセットを作成できます: >>> from django. ...
https://man.mtool.work/django/6.1/topics/forms/formsets.html
モデルフィールドリファレンス — Django 6.1 ドキュメント 8259
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデルフィールドリファレンス ¶ このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field の ... ジェクトはそのままで新しいオブジェクトが作成されます。 The primary key field is set to None when calling a model instance's delete() method. unique ¶ Field. unique [ソース] ¶ True の場合、そのフィールドはテーブル上で一意となる制約を受けます。 これはデー ... になるファイルとやり取りするために使用できるいくつかのメソッドが含まれています: 警告 このクラスの 2 つのメソッド、 save() と delete() は、デフォルトで、関連する FieldFile のモデルオブジェクトをデータベースに保存します。 FieldFile. name ¶ 関連する FileFie ... base import ContentFile myfile = ContentFile ( "hello world" ) より詳しくは ファイルの管理 を参照してください。 FieldFile. delete ( save = True ) [ソース] ¶ このインスタンスに関連付けられているファイルを削除し、フィールドのすべての属性をクリアします。 ...
https://man.mtool.work/django/6.1/ref/models/fields.html
モデルフィールドリファレンス — Django 6.1 ドキュメント 8186
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデルフィールドリファレンス ¶ このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field の ... ジェクトはそのままで新しいオブジェクトが作成されます。 The primary key field is set to None when calling a model instance's delete() method. unique ¶ Field. unique [ソース] ¶ True の場合、そのフィールドはテーブル上で一意となる制約を受けます。 これはデー ... になるファイルとやり取りするために使用できるいくつかのメソッドが含まれています: 警告 このクラスの 2 つのメソッド、 save() と delete() は、デフォルトで、関連する FieldFile のモデルオブジェクトをデータベースに保存します。 FieldFile. name ¶ 関連する FileFie ... base import ContentFile myfile = ContentFile ( "hello world" ) より詳しくは ファイルの管理 を参照してください。 FieldFile. delete ( save = True ) [ソース] ¶ このインスタンスに関連付けられているファイルを削除し、フィールドのすべての属性をクリアします。 ...
https://man.mtool.work/django/6.1/ref/models/fields.html
Django 6.1 release notes — Django 6.1 ドキュメント 7893
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 6.1 release notes ¶ August 5, 2026 Welcome to Django 6.1! These release notes cover the new features , as well as some backwards incompatible ... mple perform only two queries: Fetch all books. Fetch associated authors. See fetch modes for more details. Database-level delete options for ForeignKey.on_delete ¶ ForeignKey.on_delete now supports database-level delete options: DB_CASCADE DB_SET_NULL ... DB_SET_DEFAULT These options handle deletion logic entirely within the database, using the SQL ON DELETE clause. They are thus more efficient than the existing Python-level options, as Django does not need to load objects befor ... e deleting them. As a consequence, the DB_CASCADE option does not trigger the pre_delete or post_delete signals. Mailers ¶ The new MAILERS setting supports configuring multiple email backends with different opti ...
https://man.mtool.work/django/6.1/releases/6.1.html
Django 6.1 release notes — Django 6.1 ドキュメント 7893
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 6.1 release notes ¶ August 5, 2026 Welcome to Django 6.1! These release notes cover the new features , as well as some backwards incompatible ... mple perform only two queries: Fetch all books. Fetch associated authors. See fetch modes for more details. Database-level delete options for ForeignKey.on_delete ¶ ForeignKey.on_delete now supports database-level delete options: DB_CASCADE DB_SET_NULL ... DB_SET_DEFAULT These options handle deletion logic entirely within the database, using the SQL ON DELETE clause. They are thus more efficient than the existing Python-level options, as Django does not need to load objects befor ... e deleting them. As a consequence, the DB_CASCADE option does not trigger the pre_delete or post_delete signals. Mailers ¶ The new MAILERS setting supports configuring multiple email backends with different opti ...
https://man.mtool.work/django/6.1/releases/6.1.html
管理アクション — Django 6.1 ドキュメント 7820
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 管理アクション ¶ Djangoの管理者の基本的な仕事は、一言で言えば、「オブジェクトを選択し、それを変更する」ことに尽きます。これは大多数のユースケースに当 ... ます。チェンジリストページで選択されたオブジェクトのリストで呼び出される関数です。 Django には、すべてのモデルで利用可能な "delete selected objects" アクションが同梱されています。たとえば、これは Django 組み込みの django.contrib.auth アプリの user モジュ ... ールです: 警告 "選択したオブジェクトの削除" アクションは効率の観点から QuerySet.delete() を使用します。使用したモデルの delete() メソッドが呼ばれないことは重要な注意点です。 この動作をオーバーライドしたい場合は ... 、 ModelAdmin.delete_queryset() をオーバーライドするか、選択された各アイテムに対して Model.delete() を呼び出すなど、お好みの方法で削除を行うカス ...
https://man.mtool.work/django/6.1/ref/contrib/admin/actions.html
管理アクション — Django 6.1 ドキュメント 7820
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 管理アクション ¶ Djangoの管理者の基本的な仕事は、一言で言えば、「オブジェクトを選択し、それを変更する」ことに尽きます。これは大多数のユースケースに当 ... ます。チェンジリストページで選択されたオブジェクトのリストで呼び出される関数です。 Django には、すべてのモデルで利用可能な "delete selected objects" アクションが同梱されています。たとえば、これは Django 組み込みの django.contrib.auth アプリの user モジュ ... ールです: 警告 "選択したオブジェクトの削除" アクションは効率の観点から QuerySet.delete() を使用します。使用したモデルの delete() メソッドが呼ばれないことは重要な注意点です。 この動作をオーバーライドしたい場合は ... 、 ModelAdmin.delete_queryset() をオーバーライドするか、選択された各アイテムに対して Model.delete() を呼び出すなど、お好みの方法で削除を行うカス ...
https://man.mtool.work/django/6.1/ref/contrib/admin/actions.html
Django の admin サイト — Django 6.1 ドキュメント 7746
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の admin サイト ¶ Django のパワフルな特徴の1つは、自動的に生成される admin インタフェースです。あなたのモデルクラスからメタデータを読み取り、 ... class Blog ( models . Model ): title = models . CharField ( max_length = 255 ) author = models . ForeignKey ( Person , on_delete = models . CASCADE ) class BlogAdmin ( admin . ModelAdmin ): list_display = [ "title" , "author" , "author_first_name" ] @ ... ます。 ModelAdmin. change_list_template ¶ カスタムンテンプレートの絶対パスで、 changelist_view() で使われます。 ModelAdmin. delete_confirmation_template ¶ カスタムンテンプレートの絶対パスで、1 つ以上のオブジェクトを削除するときに確認ページを表示するため ... に、 delete_view() で使われます。 ModelAdmin. delete_selected_confirmation_template ¶ カスタムンテンプレートの絶対パスで、1 つ以上のオ ...
https://man.mtool.work/django/6.1/ref/contrib/admin/
Django の admin サイト — Django 6.1 ドキュメント 7746
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の admin サイト ¶ Django のパワフルな特徴の1つは、自動的に生成される admin インタフェースです。あなたのモデルクラスからメタデータを読み取り、 ... class Blog ( models . Model ): title = models . CharField ( max_length = 255 ) author = models . ForeignKey ( Person , on_delete = models . CASCADE ) class BlogAdmin ( admin . ModelAdmin ): list_display = [ "title" , "author" , "author_first_name" ] @ ... ます。 ModelAdmin. change_list_template ¶ カスタムンテンプレートの絶対パスで、 changelist_view() で使われます。 ModelAdmin. delete_confirmation_template ¶ カスタムンテンプレートの絶対パスで、1 つ以上のオブジェクトを削除するときに確認ページを表示するため ... に、 delete_view() で使われます。 ModelAdmin. delete_selected_confirmation_template ¶ カスタムンテンプレートの絶対パスで、1 つ以上のオ ...
https://man.mtool.work/django/6.1/ref/contrib/admin/
PREV 1 2 3 4 5 6 7 8 9 10 NEXT