per page, with , order by , clip by
Results of 1 - 4 of about 4 for editors (0.008 sec.)
マネージャ 12408
マネージャ class Manager [ソース] マネージャ (Manager) とは、Django のモデルに対するデータベースクエリの操作を提供するインターフェイスです。Django アプリケーション内の1つのモデルに対して、 Manager は最低でも1つは存在します。 Manager クラスの ... gth = 1 , choices = { "A" : _ ( "Author" ), "E" : _ ( "Editor" )}) people = models . Manager () authors = AuthorManager () editors = EditorManager () この例では、 Person.authors.all() 、 Person.editors.all() 、 Person.people.all() を指定でき、期待通りの ... る必要があります: class PersonQuerySet ( models . QuerySet ): def authors ( self ): return self . filter ( role = "A" ) def editors ( self ): return self . filter ( role = "E" ) class PersonManager ( models . Manager ): def get_queryset ( self ): return ... PersonQuerySet ( self . model , using = self . _db ) def authors ( self ): return self . get_queryset () . authors () def editors ( self ): return self . get_queryset () . editors () class Person ( models . Model ): first_name = models . CharField ( ma ...
https://man.mtool.work/django/6.1/topics/db/managers.html
Django テンプレート言語 8506
Django テンプレート言語 このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡張するかを知りたい場合は、 Python プログラマーのための Django テンプレート言語 を参照してくださ ... hors.html {% block content %} < h2 > Authors </ h2 > {% for user in authors %} {% partial user-info %} {% endfor %} < h2 > Editors </ h2 > {% for user in editors %} {% partial user-info %} {% endfor %} {% endblock %} The partial content is rendered each ...
https://man.mtool.work/django/6.1/ref/templates/language.html
Django 3.2 リリースノート 8266
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... rators has the advantage that these options are more discoverable as they can be suggested by completion utilities in code editors. They are merely a convenience and still set the same attributes on the functions under the hood. マイナーな機能 django.co ...
https://man.mtool.work/django/6.1/releases/3.2.html
Djangoの認証システムを使用する 7766
Djangoの認証システムを使用する このドキュメントでは、デフォルト設定でのDjangoの認証システムの使用方法を説明します。この設定は、タスクの適切な範囲を管理することで、最も一般的なプロジェクトのニーズにかなうよう徐々に発展してきました。そして、パ ... グループに属することが可能です。 グループに属するユーザーは、そのグループに付与された権限を自動的に持ちます。たとえば、 Site editors グループが can_edit_home_page 権限を持っていた場合、そのグループ内のすべてのユーザーは、その権限を持つことになります。 権限 ...
https://man.mtool.work/django/6.1/topics/auth/default.html
PREV 1 NEXT