per page, with , order by , clip by
Results of 1 - 10 of about 58 for Group (0.012 sec.)
django.contrib.auth 14505
django.contrib.auth このドキュメントでは、Django の 認証システムのコンポーネントの API リファレンス資料を提供しています。 これらのコンポーネントの使い方や、認証と認可をカスタマイズする方法の詳細は、 認証トピックガイド を参照してください。 U ... は、パスワードが使用不可であることを示すことがあります。詳細については、 パスワードに関するドキュメント を参照してください。 groups Group への多対多のリレーションシップです。 user_permissions Permission への多対多のリレーションシップです。 is_staff 真偽 ... ッション文字列のセットを返します。 もし obj が渡された場合、この特定のオブジェクトのユーザパーミッションのみを返します。 get_group_permissions ( obj = None ) aget_group_permissions ( obj = None ) 非同期バージョン : aget_group_permissions() ユーザがグルー ... is_authenticated が False ではなく True です。 is_staff と is_superuser が常に False です。 is_active が常に False です。 groups と user_permissions が常に空です。 set_password() 、 check_password() 、 save() 、 delete() が NotImplementedError を投げ ...
https://man.mtool.work/django/6.1/ref/contrib/auth.html
モデル 11197
モデル モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは単一のデータベースのテーブルに対応付けられます。 基本: モデルは各々 Python のクラスであり dja ... s Person ( models . Model ): name = models . CharField ( max_length = 128 ) def __str__ ( self ): return self . name class Group ( models . Model ): name = models . CharField ( max_length = 128 ) members = models . ManyToManyField ( Person , through = ... rn self . name class Membership ( models . Model ): person = models . ForeignKey ( Person , on_delete = models . CASCADE ) group = models . ForeignKey ( Group , on_delete = models . CASCADE ) date_joined = models . DateField () invite_reason = models ... . CharField ( max_length = 64 ) class Meta : constraints = [ models . UniqueConstraint ( fields = [ "person" , "group" ], name = "unique_person_group" ) ] 中間モデルを指定する場合は、多対多のリレーションシップに参加するモデルに対する外部キー ...
https://man.mtool.work/django/6.1/topics/db/models.html
データベースアクセスの最適化 10407
データベースアクセスの最適化 Djangoのデータベース層は、開発者がデータベースを最大限活用できるように、さまざまな方法を提供しています。このドキュメントでは、データベースアクセスを最適化する際にとるべき手順を、大まかにいくつかの見出しとしてまと ... を使いすぎない もしクエリセットの他のデータが必要になったときは、すぐに評価を行います。 例えば、 User と多対多の関連をもつ Group モデルを考えたとき、以下のコードが最適です: members = group . members . all () if display_group_members : if members : if ... current_user in members : print ( "You and" , len ( members ) - 1 , "other users are members of this group." ) else : print ( "There are" , len ( members ), "members in this group." ) for member in members : print ( member . user ... name ) else : print ( "There are no members in this group." ) 最適である理由: クエリセットは遅延評価されるので、 display_group_members が False の場合、データベースクエリは発行され ...
https://man.mtool.work/django/6.1/topics/db/optimization.html
アグリゲーション (集計) 9455
アグリゲーション (集計) Djangoのデータベース抽象API のトピックガイドでは、個別のオブジェクトの作成、取得、削除を行うDjangoのクエリの使い方を説明しました。しかし、オブジェクトのコレクションを 集計 (アグリゲーション) した値や、集計することによ ... せん (他のメソッドの挙動を変更すると API の安定性 ポリシーに反するため、そのような変更は行えません)。 デフォルトの並び順は GROUP BY に適用されません GROUP BY クエリ (例えば .values() and .annotate() により生成されたクエリ) はモデルのデフォルトの並び順 ... 内部では、 default 引数は、集計関数を Coalesce でラップすることによって実装されています。 Aggregating with MySQL ONLY_FULL_GROUP_BY enabled When using the values() clause to group query results for annotations in MySQL with the ONLY_FULL_GROUP_BY SQL ... es_per_author = F ( "greatest_pages" ) / F ( "num_authors" ), ... ) . aggregate ( Avg ( "pages_per_author" )) This creates groups of books based on the SQL column GREATEST(pages, 600) . One unique group consists of books with 600 pages or less, and ot ...
https://man.mtool.work/django/6.1/topics/db/aggregation.html
Django の admin サイト 8987
Django の admin サイト Django のパワフルな特徴の1つは、自動的に生成される admin インタフェースです。あなたのモデルクラスからメタデータを読み取り、モデル中心のインタフェースを提供します。このインタフェースのおかげで、ユーザはあなたのサイトの ... ) を使用します。フィールドが radio_fields に指定された場合、Django は代わりに ラジオボタンのインターフェースを使用します。 group が Person モデルの ForeignKey だと仮定すると、次のようになります。 class PersonAdmin ( admin . ModelAdmin ): radio_fields ... = { "group" : admin . VERTICAL } django.contrib.admin モジュールから HORIZONTAL か VERTICAL のどちらを使用するか選択してください。 Fo ... とします: from django.db import models class Person ( models . Model ): name = models . CharField ( max_length = 128 ) class Group ( models . Model ): name = models . CharField ( max_length = 128 ) members = models . ManyToManyField ( Person , related_n ...
https://man.mtool.work/django/6.1/ref/contrib/admin/
Django 3.0 リリースノート 8987
Django 3.0 リリースノート 2019年12月2日 Django 3.0 へようこそ! このリリースノートでは、 バージョン 3.0 の新機能 と、Django 2.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... end class to ease customization of authentication backends. Added get_user_permissions() method to mirror the existing get_group_permissions() method. Added HTML autocomplete attribute to widgets of username, email, and password fields in django.contr ... herited. FileField.upload_to now supports pathlib.Path . CheckConstraint is now supported on MySQL 8.0.16+. The new allows_group_by_selected_pks_on_model() method of django.db.backends.base.BaseDatabaseFeatures allows optimization of GROUP BY clauses ... re only the selected models' primary keys. By default, it's supported only for managed models on PostgreSQL. To enable the GROUP BY primary key-only optimization for unmanaged models, you have to subclass the PostgreSQL database engine, overriding the ...
https://man.mtool.work/django/6.1/releases/3.0.html
Django 3.0.11 リリースノート 8518
Django 3.0.11 リリースノート November 2, 2020 Django 3.0.11 fixes a regression in 3.0.7 and adds compatibility with Python 3.9. バグ修正 Fixed a regression in Django 3.0.7 that didn't use Subquery() aliases in the GROUP BY clause ( #32152 ) ...
https://man.mtool.work/django/6.1/releases/3.0.11.html
Django 1.4 リリースノート 8357
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! 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.3 or older versions. We've a ... f the admin's change-list sorting interface and horizontal and vertical "filter" widgets, some icon files were removed and grouped into two sprite files. Specifically: selector-add.gif , selector-addall.gif , selector-remove.gif , selector-removeall.g ... behavior is defined by the underlying backend implementation. Check their documentation for details. COMMENTS_BANNED_USERS_GROUP setting Django's comments has historically supported excluding the comments of a special user group, but we've never docum ... s. If you rely on the feature and want to restore the old behavior, use a custom comment model manager to exclude the user group, like this: from django.conf import settings from django.contrib.comments.managers import CommentManager class BanningComm ...
https://man.mtool.work/django/6.1/releases/1.4.html
Django 4.2 リリースノート 8357
Django 4.2 リリースノート 2023年4月3日 Django 4.2 へようこそ! このリリースノートでは、 バージョン 4.2 の新機能 と、Django 4.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ションでは、サードパーティのデータベースバックエンドで必要になる可能性のある変更について説明します。 DatabaseFeatures.allows_group_by_pk は削除されました。これは、MySQL 5.7.15で適切な機能依存性の検出によって置き換えられたMySQLの拡張機能に対応するために残 ... されていたものです。 DatabaseFeatures.allows_group_by_selected_pks はまだサポートされており、バックエンドが SQL:1999 標準で指定されているように、 GROUP BY 句での機能依存性の ... 定義済みのモデルメソッドをオーバーライドする を参照してください。 MySQL での生の集計処理のサポートを廃止 MySQL 8 以降では、 GROUP BY 列に対する機能依存を許可しているため、メインテーブルの主キーによるグルーピングというDjango 4.2 以前の回避策は削除されま ...
https://man.mtool.work/django/6.1/releases/4.2.html
Django 2.0.6 リリースノート 8035
Django 2.0.6 リリースノート 2018年6月1日 Django 2.0.6 では、2.0.5 にあったいくつかのバグを修正しました。 バグ修正 Fixed a regression that broke custom template filters that use decorators ( #29400 ). Fixed detection of custom URL converters ... in included patterns ( #29415 ). Fixed a regression that added an unnecessary subquery to the GROUP BY clause on MySQL when using a RawSQL annotation ( #29416 ). Fixed WKBWriter.write() and write_hex() for empty polygons o ...
https://man.mtool.work/django/6.1/releases/2.0.6.html
PREV 1 2 3 4 5 6 NEXT