per page, with , order by , clip by
Results of 1 - 10 of about 60 for Remove (0.003 sec.)
リレーション先オブジェクトのリファレンス 12462
リレーション先オブジェクトのリファレンス class RelatedManager "関係マネージャ(related manager)"とは、1対多または多対多の関係するコンテキストで使用されるマネージャのことです。これは2つのケースで起こります: ForeignKey リレーションの "反対側 ... て、新しい 中間モデル インスタンスの値を指定します。呼び出し可能オブジェクトを through_defaults 辞書の値として使用できます。 remove ( * objs , bulk = True ) aremove ( * objs , bulk = True ) 非同期バージョン : aremove() リレーション先オブジェクトのセットか ... ジェクトを削除します: >>> b = Blog . objects . get ( id = 1 ) >>> e = Entry . objects . get ( id = 234 ) >>> b . entry_set . remove ( e ) # Disassociates Entry e from Blog b. Similar to add() , e.save() is called in the example above to perform the updat ... e. Using remove() with a many-to-many relationship, however, will delete the relationships using QuerySet.delete() which means no model sa ...
https://man.mtool.work/django/6.1/ref/models/relations.html
PostgreSQL 固有のフォームフィールドとウィジェット 11677
PostgreSQL 固有のフォームフィールドとウィジェット これらのフィールドやウィジェットはすべて django.contrib.postgres.forms モジュールから利用できます。 フィールド SimpleArrayField class SimpleArrayField ( base_field , delimiter = ',' , max_le ... トからサーバーに送信するデータをフォーマットする便利な方法です。 SplitArrayField class SplitArrayField ( base_field , size , remove_trailing_nulls = False ) このフィールドは、ベースとなるフィールドを固定回数複製することで配列を処理します。 base_field これ ... は必須の引数です。繰り返すフォームフィールドを指定します。 size これは、ベースとなるフィールドが使用される固定の回数です。 remove_trailing_nulls デフォルトでは False に設定されています。 False に設定すると、繰り返されたフィールドのそれぞれの値が保存され ... ます。 True に設定すると、末尾の値が空白の場合、その値は結果から取り除かれます。基となるフィールドが required=True で、かつ remove_trailing_nulls が True の場合、末尾にのみ null 値が許され、その値は取り除かれます。 例: SplitArrayField ( IntegerField ( r ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/forms.html
SchemaEditor 11357
SchemaEditor class BaseDatabaseSchemaEditor [ソース] Django のマイグレーションシステムは2つの部分に分かれています。データベースに対してどのような操作を実行するべきかを計算してその結果を保管するロジックの部分 ( django.db.migrations )と、「モ ... します。 add_index() BaseDatabaseSchemaEditor. add_index ( model , index ) [ソース] model のテーブルに index を追加します。 remove_index() BaseDatabaseSchemaEditor. remove_index ( model , index ) [ソース] model のテーブルから index を削除します。 rename ... nt() BaseDatabaseSchemaEditor. add_constraint ( model , constraint ) [ソース] model のテーブルに constraint を追加します。 remove_constraint() BaseDatabaseSchemaEditor. remove_constraint ( model , constraint ) [ソース] model のテーブルから constraint を ... れている場合、それは何も操作しません。 フィールドが ForeignKey である場合、これによって外部キー制約もカラムに追加されます。 remove_field() BaseDatabaseSchemaEditor. remove_field ( model , field ) [ソース] フィールドによって追加された、モデルのテーブルか ...
https://man.mtool.work/django/6.1/ref/schema-editor.html
Django 1.7 リリースノート 10266
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... _name of application configurations. The admin automatically calls autodiscover() when Django starts. You can consequently remove this line from your URLconf. Django imports all application configurations and models as soon as it starts, through a dete ... ds, including DecimalField and DateField , override it and show how to call the method on the superclass and simply add or remove extra arguments. This also means that all arguments to fields must themselves be serializable; to see what we consider ser ... previously depended on the PyWin32 package; if it wasn't installed, file locking failed silently. That dependency has been removed, and file locking is now implemented natively on both Windows and Unix. ファイルのアップロード The new UploadedFile.conte ...
https://man.mtool.work/django/6.1/releases/1.7.html
Porting your apps from Django 0.96 to 1.0 9786
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... Replace your model's __str__ function with a __unicode__ method, and make sure you use Unicode ( u'foo' ) in that method. Remove prepopulated_from Remove the prepopulated_from argument on model fields. It's no longer valid and has been moved to the Mo ... delAdmin class in admin.py . See the admin , below, for more details about changes to the admin. Remove core Remove the core argument from your model fields. It is no longer necessary, since the equivalent functionality (part ... the admin interface now. You don't have to worry about inline editing until you get to the admin section, below. For now, remove all references to core . Replace class Admin: with admin.py Remove all your inner class Admin declarations from your model ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
How to release Django 9466
How to release Django このドキュメントでは、Django のリリース方法について説明しています。 これらの手順を変更した場合は、最新の情報を保ってください! ここでのポイントは、規定を設けるのではなく、説明的であることです。自由に効率化したり、変更し ... r copy the contents from the current version and delete most of the contents leaving only the headings ( example commit ). Remove .. versionadded:: and .. versionchanged:: annotations in the documentation from two releases ago, as well as any remaining ... older annotations. For example, in Django 5.1, notes for 4.2 will be removed ( example commit ). Remove features that have reached the end of their deprecation cycle, including their docs and the .. ... #XXXXX -- prefix linking to the original ticket where the deprecation began if possible. Make sure this gets noted in the removed features section in the release notes ( example commit ). Advance the deprecation warnings ( example commit ). Increase t ...
https://man.mtool.work/django/6.1/internals/howto-release-django.html
データベースアクセスの最適化 9466
データベースアクセスの最適化 Djangoのデータベース層は、開発者がデータベースを最大限活用できるように、さまざまな方法を提供しています。このドキュメントでは、データベースアクセスを最適化する際にとるべき手順を、大まかにいくつかの見出しとしてまと ... r by is an operation the database must perform. If a model has a default ordering ( Meta.ordering ) and you don't need it, remove it on a QuerySet by calling order_by() with no parameters. データベースにインデックスを追加すると、並べ替えのパフォーマンス ... ースケースに適切であることを確認してください。 一括で削除する ManyToManyFields からオブジェクトを取り除くとき、可能であれば remove() を呼び出し、SQL文の数を減らしてください。例えば: my_band . members . remove ( me , my_friend ) ...これは下記よりも適切で ... す: my_band . members . remove ( me ) my_band . members . remove ( my_friend ) ……ここで、 Band と Artist は多対多のリレーションシップを持つモデル同士です ...
https://man.mtool.work/django/6.1/topics/db/optimization.html
シグナル 9001
シグナル Djangoが送信する全てのシグナルのリストです。全ての組み込みシグナルは send() メソッドを使用して送信されます。 参考 シグナルの登録方法と受信方法に関する情報については、 シグナルディスパッチャ のドキュメントを参照してください。 認証フ ... が1つ以上追加される 前 に送信されます。 "post_add" リレーションに1つ以上のオブジェクトが追加された 後 に送信されます。 "pre_remove" リレーションから 1 つ以上のオブジェクトが削除される 前 に送信されます。 "post_remove" リレーションから1つ以上のオブジェク ... てデータベースの IntegrityError を避ける必要があるため、追加されることが提出された値のサブセットである可能性があります。 pre_remove と post_remove アクションにおいて、これはリレーションから削除されることが提案された主キーの値のセットです。これは、値が実際 ... みをここに送るため) raw False (since it is not loaded from a fixture) そして、次のようなことをした場合: >>> t . pizza_set . remove ( p ) m2m_changed ハンドラに送信される引数は以下の通りです: 引数 値 sender Pizza.toppings.through (中間の m2m クラス) inst ...
https://man.mtool.work/django/6.1/ref/signals.html
Django 1.1 リリースノート 8521
Django 1.1 リリースノート July 29, 2009 Django 1.1 へようこそ! Django 1.1 includes a number of nifty new features , lots of bug fixes, and an easy upgrade path from Django 1.0. Backwards-incompatible changes in 1.1 Django has a policy of AP ... st case errors revealed by the new rollback approach; in the long-term tests should be rewritten to correct the test case. Removed SetRemoteAddrFromForwardedFor middleware For convenience, Django 1.0 included an optional middleware class -- django.midd ... DDR is "safe" or in some way reliable as a source of authentication. While not directly a security issue, we've decided to remove this middleware with the Django 1.1 release. It has been replaced with a class that does nothing other than raise a Deprec ... ing . If you've been relying on this middleware, the easiest upgrade path is: Examine the code as it existed before it was removed . Verify that it works correctly with your upstream proxy, modifying it to support your particular proxy (if necessary). ...
https://man.mtool.work/django/6.1/releases/1.1.html
Django 1.5 リリースノート 8376
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.4 or older versions. We'v ... d to change tags like {% url myview %} to {% url "myview" %} . If you were using {% load url from future %} you can simply remove that line under Django 1.5 Python バージョン間の互換性 Django 1.5 requires Python 2.6.5 or above, though we highly recomme ... n addition to the changes outlined in this section, be sure to review the deprecation plan for any features that have been removed. If you haven't updated your code within the deprecation timeline for a given feature, its removal may appear as a backwa ... predecessors, but it actually was in descending order. In 1.5, the documented order was restored. You may want to add (or remove) the reversed keyword when you're iterating on date_list in a template: {% for date in date_list reversed %} ArchiveIndexV ...
https://man.mtool.work/django/6.1/releases/1.5.html
PREV 1 2 3 4 5 6 NEXT