per page, with , order by , clip by
Results of 1 - 10 of about 47 for parent (0.087 sec.)
Django 2.1.15 リリースノート 14456
Django 2.1.15 リリースノート 2019年12月2日 Django 2.1.15 は 2.1.14 に含まれるセキュリティ脆弱性とデータ損失のバグを修正しています。 CVE-2019-19118: Privilege escalation in the Django admin. Since Django 2.1, a Django model admin displaying ... a parent model with related model inlines, where the user has view-only permissions to a parent model but edit permissions to the i ... nline model, would display a read-only view of the parent model but editable forms for the inline. Submitting these forms would not allow direct edits to the parent model, but woul ... d trigger the parent model's save() method, and cause pre and post-save signal handlers to be invoked. This is a privilege escalation as a user ...
https://man.mtool.work/django/6.1/releases/2.1.15.html
Django 2.2.8 リリースノート 14076
Django 2.2.8 リリースノート 2019年12月2日 Django 2.2.8 fixes a security issue, several bugs in 2.2.7, and adds compatibility with Python 3.8. CVE-2019-19118: Privilege escalation in the Django admin. Since Django 2.1, a Django model admin d ... isplaying a parent model with related model inlines, where the user has view-only permissions to a parent model but edit permissions to the i ... nline model, would display a read-only view of the parent model but editable forms for the inline. Submitting these forms would not allow direct edits to the parent model, but woul ... d trigger the parent model's save() method, and cause pre and post-save signal handlers to be invoked. This is a privilege escalation as a user ...
https://man.mtool.work/django/6.1/releases/2.2.8.html
Django 1.0 リリースノート 9196
Django 1.0 リリースノート Django 1.0 へようこそ! We've been looking forward to this moment for over three years, and it's finally here. Django 1.0 represents the largest milestone in Django's development to date: a web framework that a grou ... ance with to_field If you're using multiple table model inheritance , be aware of this caveat: child models using a custom parent_link and to_field will cause database integrity errors. A set of models like the following are not valid : class Parent ( ... Model ): name = models . CharField ( max_length = 10 ) other_value = models . IntegerField ( unique = True ) class Child ( Parent ): father = models . OneToOneField ( Parent , primary_key = True , to_field = "other_value" , parent_link = True ) value = ...
https://man.mtool.work/django/6.1/releases/1.0.html
素の SQL 文の実行 8907
素の SQL 文の実行 Django gives you three ways of performing raw SQL queries: you can embed raw SQL fragments into ORM queries using RawSQL (see Raw SQL fragments ), use Manager.raw() to perform raw queries and return model instances , or av ... カーソルは区別できないため、一意な列名を想定しています。 この3つの違いの例を挙げましょう: >>> cursor . execute ( "SELECT id, parent_id FROM test LIMIT 2" ) >>> cursor . fetchall () ((54360982, None), (54360880, None)) >>> cursor . execute ( "SELECT id, p ... arent_id FROM test LIMIT 2" ) >>> dictfetchall ( cursor ) [{'parent_id': None, 'id': 54360982}, {'parent_id': None, 'id': 54360880}] >>> cursor . execute ( "SELECT id, parent_id FROM test LI ... MIT 2" ) >>> results = namedtuplefetchall ( cursor ) >>> results [Result(id=54360982, parent_id=None), Result(id=54360880, parent_id=None)] >>> results [ 0 ] . id 54360982 >>> results [ 0 ][ 0 ] 54360982 コネクション ...
https://man.mtool.work/django/6.1/topics/db/sql.html
Porting your apps from Django 0.96 to 1.0 8117
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 ... . Use new inline syntax The new edit_inline options have all been moved to admin.py . Here's an example: Old (0.96): class Parent ( models . Model ): ... class Child ( models . Model ): parent = models . ForeignKey ( Parent , edit_inline = models . STA ... CKED , num_in_admin = 3 ) New (1.0): class ChildInline ( admin . StackedInline ): model = Child extra = 3 class ParentAdmin ( admin . ModelAdmin ): model = Parent inlines = [ ChildInline ] admin . site . register ( Parent , ParentAdmin ) See ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
Django 1.11.1 リリースノート 8117
Django 1.11.1 リリースノート May 6, 2017 Django 1.11.1 adds a minor feature and fixes several bugs in 1.11. Allowed disabling server-side cursors on PostgreSQL The change in Django 1.11 to make QuerySet.iterator() use server-side cursors on ... hen using save_as_new ( #28159 ). Fixed a regression where Model._state.db wasn't set correctly on multi-table inheritance parent models after saving a child model ( #28166 ). Corrected the return type of ArrayField(CITextField()) values retrieved from ... pendency as of Django 1.11.) Fixed a regression causing __in lookups on a foreign key to fail when using the foreign key's parent model as the lookup value ( #28175 ). ...
https://man.mtool.work/django/6.1/releases/1.11.1.html
モデル 8117
モデル モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは単一のデータベースのテーブルに対応付けられます。 基本: モデルは各々 Python のクラスであり dja ... できます。 参考 完全な実装例は、 1対1リレーションモデルの例 を参照してください。 OneToOneField フィールドには、オプションの parent_link 引数を指定することもできます。 以前は OneToOneField クラスが自動的にモデルの主キーになっていました。しかし、現在はそう ... 連付けられた OneToOneField が自動生成されます。 place_ptr = models . OneToOneField ( Place , on_delete = models . CASCADE , parent_link = True , primary_key = True , ) Restaurant 上で、自分自身の OneToOneField を parent_link=True を付けて宣言すれば、この ... を持っているが、子モデルに既定のデータ並び順を持たせたくない場合は、下記のように明示的に無効化できます。 class ChildModel ( ParentModel ): # ... class Meta : # Remove parent's ordering effect ordering = [] 継承と関係の逆引き Because multi-table inherita ...
https://man.mtool.work/django/6.1/topics/db/models.html
ミックスイン (mixin) を編集する 8026
ミックスイン (mixin) を編集する 以下のミックスイン (mixin) は、Djangoの編集ビューを構築するのに使用されます。 django.views.generic.edit.FormMixin django.views.generic.edit.ModelFormMixin django.views.generic.edit.ProcessFormView django.view ... s_url は辞書文字列のフォーマットを含むことができ、オブジェクトのフィールド属性に対して補間されます。例えば、 success_url="/parent/{parent_id}/" を使用すると、モデルの parent_id フィールドから構成される URL にリダイレクトできます。 delete ( request , * ...
https://man.mtool.work/django/6.1/ref/class-based-views/mixins-editing.html
Django 2.2.11 リリースノート 8026
Django 2.2.11 リリースノート March 4, 2020 Django 2.2.11 fixes a security issue and a data loss bug in 2.2.10. CVE-2020-9402: Potential SQL injection via tolerance parameter in GIS functions and aggregates on Oracle GIS functions and aggreg ... tably crafted tolerance . バグ修正 Fixed a data loss possibility in the select_for_update() . When using related fields or parent link fields with マルチテーブル継承 in the of argument, the corresponding models were not locked ( #31246 ). ...
https://man.mtool.work/django/6.1/releases/2.2.11.html
Django 3.2.6 リリースノート 7934
Django 3.2.6 リリースノート August 2, 2021 Django 3.2.6 では、3.2.5 におけるいくつかのバグを修正しました。 バグ修正 Fixed a regression in Django 3.2 that caused a crash validating "NaN" input with a forms.DecimalField when additional constr ... ixed a bug in Django 3.2 where a system check would crash on a model with a reverse many-to-many relation inherited from a parent class ( #32947 ). ...
https://man.mtool.work/django/6.1/releases/3.2.6.html
PREV 1 2 3 4 5 NEXT