per page, with , order by , clip by
Results of 1 - 10 of about 23 for GenericForeignKey (0.003 sec.)
contenttypes フレームワーク 15734
contenttypes フレームワーク Django には contenttypes アプリケーションが含まれており、 Django を使ったプロジェクトにインストールされているすべてのモデルを追跡し、モデルを扱うための高レベルで汎用的なインターフェースを提供します。 概要 content ... ップを実現できます。 たとえば、次のようにしてタグ付けシステムに使用できます: from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.db import models class TaggedItem ( models . Model ... ForeignKey ( ContentType , on_delete = models . CASCADE ) object_id = models . PositiveBigIntegerField () content_object = GenericForeignKey ( "content_type" , "object_id" ) def __str__ ( self ): return self . tag class Meta : indexes = [ models . Index ( fields ... Key を使用する場合、タグを格納する単一のモデルを選択する必要があります。contenttypes アプリケーションは特別なフィールド型( GenericForeignKey ) を提供し、これにより、リレーションシップを任意のモデルと設定できます。 class GenericForeignKey [ソース] GenericForeignKe ...
https://man.mtool.work/django/6.1/ref/contrib/contenttypes.html
Django 1.11.9 リリースノート 9551
Django 1.11.9 リリースノート 2018年1月1日 Django 1.11.9 fixes several bugs in 1.11.8. バグ修正 Fixed a regression in Django 1.11 that added newlines between MultiWidget 's subwidgets ( #28890 ). Fixed incorrect class-based model index name ... Fixed incorrect foreign key constraint name for models with quoted db_table ( #28876 ). Fixed a regression in caching of a GenericForeignKey when the referenced model instance uses more than one level of multi-table inheritance ( #28856 ). ...
https://man.mtool.work/django/6.1/releases/1.11.9.html
Django 1.11.8 リリースノート 9098
Django 1.11.8 リリースノート December 2, 2017 Django 1.11.8 fixes several bugs in 1.11.7. バグ修正 Reallowed, following a regression in Django 1.10, AuthenticationForm to raise the inactive user error when using ModelBackend ( #28645 ). Add ... lookups for CICharField , CIEmailField , and CITextField use a citext cast ( #28702 ). Fixed a regression in caching of a GenericForeignKey when the referenced model instance uses multi-table inheritance ( #28856 ). Fixed "Cannot change column 'x': used in a for ...
https://man.mtool.work/django/6.1/releases/1.11.8.html
Django 1.8.5 リリースノート 8814
Django 1.8.5 リリースノート October 3, 2015 Django 1.8.5 fixes several bugs in 1.8.4. バグ修正 Made the development server's autoreload more robust ( #24704 ). Fixed AssertionError in some delete queries with a model containing a field that ... foreign and primary key ( #24951 ). Fixed AssertionError in some complex queries ( #24525 ). Fixed a migrations crash with GenericForeignKey ( #25040 ). Made translation.override() clear the overridden language when a translation isn't initially active ( #25295 ) ...
https://man.mtool.work/django/6.1/releases/1.8.5.html
Django 2.0.1 リリースノート 8663
Django 2.0.1 リリースノート 2018年1月1日 Django 2.0.1 では、2.0 にあったいくつかのバグを修正しました。 バグ修正 Fixed a regression in Django 1.11 that added newlines between MultiWidget 's subwidgets ( #28890 ). Fixed incorrect class-based ... Fixed incorrect foreign key constraint name for models with quoted db_table ( #28876 ). Fixed a regression in caching of a GenericForeignKey when the referenced model instance uses more than one level of multi-table inheritance ( #28856 ). GeometryField=None の場 ...
https://man.mtool.work/django/6.1/releases/2.0.1.html
システムチェックフレームワーク 8512
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... 下のチェックは GenericInlineModelAdmin のインラインとして登録された ModelAdmin に対して行われます。 admin.E301 : <model> に GenericForeignKey がありません。 admin.E302 : 'ct_field' は <label> を参照していますが、これは <model> 上のフィールドではありません。 admin. ... E303 : 'ct_fk_field' は <label> を参照していますが、これは <model> 上のフィールドではありません。 admin.E304 : <model> の GenericForeignKey が、コンテンツタイプのフィールド <field name> とオブジェクトIDのフィールド <field name> を使用していません。 AdminSite デフ ... の前に django.contrib.auth.middleware.AuthenticationMiddleware をMIDDLEWAREで定義する必要があります。 contenttypes モデルに GenericForeignKey または GenericRelation が含まれる場合、以下のチェックが行われます: contenttypes.E001 : GenericForeignKey オブジェクトの ID ...
https://man.mtool.work/django/6.1/ref/checks.html
Django 3.0.3 リリースノート 8512
Django 3.0.3 リリースノート 2020年2月3日 Django 3.0.3 では、セキュリティの問題1件と 3.0.2 におけるいくつかのバグを修正しました。 CVE-2020-7471: StringAgg(delimiter) を通じた潜在的 SQL インジェクション StringAgg 集計関数には、適切に加工された ... isplay() が正しく動かなくなる Django 2.2.7 のリグレッションを修正しました ( #31124 )。 カスタム ContentType 外部キーを持つ GenericForeignKey に対する``QuerySet.prefetch_related()`` がクラッシュする Django 3.0 のリグレッションを修正しました ( #31190 )。 ...
https://man.mtool.work/django/6.1/releases/3.0.3.html
Django 1.7 リリースノート 8378
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... ions support the power operator ( ** ). The remove() and clear() methods of the related managers created by ForeignKey and GenericForeignKey now accept the bulk keyword argument to control whether or not to perform operations in bulk (i.e. using QuerySet.update() ... ) and clear() methods of related managers The remove() and clear() methods of the related managers created by ForeignKey , GenericForeignKey , and ManyToManyField suffered from a number of issues. Some operations ran multiple data modifying queries without wrappi ... more. You can use the bulk=False keyword argument to revert to the previous behavior. The remove() and clear() methods for GenericForeignKey related managers now perform bulk delete. The Model.delete() method isn't called on each instance anymore. You can use the ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 4.2.2 リリースノート 8378
Django 4.2.2 リリースノート 2023年6月5日 Django 4.2.2 では、4.2.1 におけるいくつかのバグを修正しました。 バグ修正 Django 4.2 におけるリグレッションを修正しました。これにより、Oracle 上の TextField() / BinaryField() に対する __isnull および ... ました ( #34539 )。 Django 4.2 におけるリグレッションを修正しました。これにより、 QuerySet.defer() に ManyToManyField または GenericForeignKey の参照を渡すとクラッシュする問題が解消されます。これは、以前のバージョンでは許可されていましたが、実際には何も行われない操 ...
https://man.mtool.work/django/6.1/releases/4.2.2.html
Django 1.9 リリースノート 8076
Django 1.9 リリースノート December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機 ... views.password_reset() view accepts an extra_email_context parameter. django.contrib.contenttypes order_with_respect_to が GenericForeignKey とともに使用できるようになりました。 django.contrib.gis すべての GeoQuerySet メソッドが廃止され、 等価なデータベース関数 で ... ort time zones when USE_TZ is True . Added the RelatedManager.set() method to the related managers created by ForeignKey , GenericForeignKey , and ManyToManyField . The add() method on a reverse foreign key now has a bulk parameter to allow executing one query re ... d() method of related managers To improve performance, the add() methods of the related managers created by ForeignKey and GenericForeignKey changed from a series of Model.save() calls to a single QuerySet.update() call. The change means that pre_save and post_sa ...
https://man.mtool.work/django/6.1/releases/1.9.html
PREV 1 2 3 NEXT