検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 64 for manager (0.023 sec.)
マネージャ — Django 4.0.6 ドキュメント 16512
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... odules « previous | up | next » マネージャ ¶ class Manager ¶ マネージャ (Manager) とは、Django のモデルに対す ... す。Django アプリケーション内の1つのモデルに対して、 Manager は最低でも1つは存在します。 Manager クラスの詳細に ... クエリを作成する に書かれています。ここでは、特に、 Manager の動作をカスタマイズするモデルのオプションについて ... 前 ¶ デフォルトでは、Django は objects という名前の Manager を各 Django モデルクラスに対して追加します。しかし ...
https://man.plustar.jp/django/topics/db/managers.html - [similar]
Model クラスのリファレンス — Django 4.0.6 ドキュメント 10381
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... bjects ¶ Each non-abstract Model class must have a Manager instance added to it. Django ensures that in your ... model class you have at least a default Manager specified. If you don't add your own Manager , Dja ... o will add an attribute objects containing default Manager instance. If you add your own Manager instance att ... port models class Person ( models . Model ): # Add manager with another name people = models . Manager () For ...
https://man.plustar.jp/django/ref/models/class.html - [similar]
Django 1.7 release notes — Django 4.0.6 ドキュメント 9649
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ntation . Calling custom QuerySet methods from the Manager ¶ Historically, the recommended way to make reusab ... le model queries was to create methods on a custom Manager class. The problem with this approach was that aft ... rySet instance and couldn't call additional custom manager methods. Though not documented, it was common to w ... ll to values() or values_list() . Writing a custom Manager was still necessary to return the custom QuerySet ...
https://man.plustar.jp/django/releases/1.7.html - [similar]
クエリを作成する — Django 4.0.6 ドキュメント 8916
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ベースからオブジェクトを取得するには、モデルクラスの Manager から QuerySet を作ります。 QuerySet はデータベース ... ような絞り込みに用いる句に対応しています。 モデルの Manager を用いることで QuerySet を取得します。各モデルは少 ... なくとも一つの Manager を持ち、デフォルトでは objects という名前を持ちます ... してください。 >>> Blog . objects <django.db.models.manager.Manager object at ...> >>> b = Blog ( name = 'Foo' ...
https://man.plustar.jp/django/topics/db/queries.html - [similar]
Model Meta options — Django 4.0.6 ドキュメント 8715
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... abel or model._meta.label_lower respectively. base_manager_name ¶ Options. base_manager_name ¶ The attribute ... name of the manager, for example, 'objects' , to use for the model's _ ... base_manager . db_table ¶ Options. db_table ¶ The name of the d ... pport tablespaces, this option is ignored. default_manager_name ¶ Options. default_manager_name ¶ The name of ...
https://man.plustar.jp/django/ref/models/options.html - [similar]
The "sites" framework — Django 4.0.6 ドキュメント 8658
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... n use the get_current() method of the Site model's manager. You should then ensure that your settings file do ... e = Site . objects . get_current () The CurrentSiteManager ¶ class managers. CurrentSiteManager ¶ If Site pla ... application, consider using the helpful CurrentSiteManager in your model(s). It's a model manager that automa ... he current Site . Mandatory SITE_ID The CurrentSiteManager is only usable when the SITE_ID setting is defined ...
https://man.plustar.jp/django/ref/contrib/sites.html - [similar]
Django 1.10 リリースノート — Django 4.0.6 ドキュメント 8658
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... elds from its keyword arguments. The new Meta.base_manager_name and Meta.default_manager_name options allow c ... ontrolling the _base_manager and _default_manager , respectively. Request と Re ... ressions provide the same functionality. The _base_manager and _default_manager attributes are removed from m ... est . user . is_authenticated is True : ... Custom manager classes available through prefetch_related must de ...
https://man.plustar.jp/django/releases/1.10.html - [similar]
複数のデータベース — Django 4.0.6 ドキュメント 8299
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... d thus not have any custom attributes, methods, or managers. You should only rely on _meta . This method can ... user_obj . delete ( using = 'legacy_users' ) Using managers with multiple databases ¶ Use the db_manager() me ... thod on managers to give managers access to a non-default database ... . For example, say you have a custom manager method that touches the database -- User.objects.c ...
https://man.plustar.jp/django/topics/db/multi-db.html - [similar]
Django のショートカット関数 — Django 4.0.6 ドキュメント 8141
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... args , ** kwargs ) ¶ Calls get() on a given model manager, but it raises Http404 instead of the model's Does ... ption. Required arguments ¶ klass A Model class, a Manager , or a QuerySet instance from which to get the obj ... e from somewhere else. Finally, you can also use a Manager . This is useful for example if you have a custom ... cts , title = 'Matilda' ) You can also use related managers : author = Author . objects . get ( name = 'Roald ...
https://man.plustar.jp/django/topics/http/shortcuts.html - [similar]
Django 1.6 release notes — Django 4.0.6 ドキュメント 7768
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... customizing the prefix of the form. Raw queries ( Manager.raw() or cursor.execute() ) can now use the "pyfor ... _queryset ¶ Methods that return a QuerySet such as Manager.get_query_set or ModelAdmin.queryset have been ren ... writing a library that implements, for example, a Manager.get_query_set method, and you need to support old ... onally add an alias with the old name: class CustomManager ( models . Manager ): def get_queryset ( self ): p ...
https://man.plustar.jp/django/releases/1.6.html - [similar]
PREV 1 2 3 4 5 6 7 NEXT