検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 146 for instance (0.009 sec.)
Signals — Django 4.0.6 ドキュメント 14323
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... の通りです: sender The model class that just had an instance created. args A list of positional arguments passe ... sender As above: the model class that just had an instance created. instance The actual instance of the model ... that's just been created. 注釈 instance._state isn't set before sending the post_init sign ... it signals because they would be executed for each instance returned during queryset iteration. pre_save ¶ dja ...
https://man.plustar.jp/django/ref/signals.html - [similar]
モデルからフォームを作成する — Django 4.0.6 ドキュメント 10035
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... objects . get ( pk = 1 ) >>> form = ArticleForm ( instance = article ) フィールドの型 ¶ 生成された Form クラス ... ブジェクトに付属したモデルフォームのインスタンスは、 instance 属性を持ち、メソッドが特定のモデルのインスタンスに ... subclass of ModelForm can accept an existing model instance as the keyword argument instance ; if this is supp ... lied, save() will update that instance. If it's not supplied, save() will create a new in ...
https://man.plustar.jp/django/topics/forms/modelforms.html - [similar]
モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 9729
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 用します。 オブジェクトを作成する ¶ To create a new instance of a model, instantiate it like any other Python c ... method must set the adding and db flags in the new instance's _state attribute. 以下はデータベースから読みださ ... DEFERRED for f in cls . _meta . concrete_fields ] instance = cls ( * values ) instance . _state . adding = Fa ... lse instance . _state . db = db # customization to store the or ...
https://man.plustar.jp/django/ref/models/instances.html - [similar]
Django の admin サイト — Django 4.0.6 ドキュメント 8445
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... cription = 'Address' ) def address_report ( self , instance ): # assuming get_full_address() returns a list of ... k_safe ( '<br>' ), ' {} ' , (( line ,) for line in instance . get_full_address ()), ) or mark_safe ( "<span cl ... mset ( self , request , form , formset , change ): instances = formset . save ( commit = False ) for obj in fo ... rmset . deleted_objects : obj . delete () for instance in instances : instance . user = request . user in ...
https://man.plustar.jp/django/ref/contrib/admin/index.html - [similar]
複数のデータベース — Django 4.0.6 ドキュメント 8374
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... At present, the only hint that will be provided is instance , an object instance that is related to the read o ... rite operation that is underway. This might be the instance that is being saved, or it might be an instance th ... dded in a many-to-many relation. In some cases, no instance hint will be provided at all. The router checks fo ... r the existence of an instance hint, and determine if that hint should be used to ...
https://man.plustar.jp/django/topics/db/multi-db.html - [similar]
django.utils.functional — Django 4.0.6 ドキュメント 8151
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... single self argument into a property cached on the instance. A cached property can be made out of an existing ... (#30127). """ name = None @staticmethod def func ( instance ): raise TypeError ( "Cannot use cached_property i ... ." % ( self . name , name ) ) def __get__ ( self , instance , cls = None ): """ Call the function and put the ... return value in instance.__dict__ so that subsequent attribute access on th ...
https://man.plustar.jp/django/_modules/django/utils/functional.html - [similar]
Django Utils — Django 4.0.6 ドキュメント 8068
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e result's tzinfo attribute is a datetime.timezone instance. parse_duration ( value ) ¶ Parses a string and re ... ed_type ( obj ) [ソース] ¶ Determine if the object instance is of a protected type. Objects of protected types ... ソース] ¶ Similar to smart_str() , except that lazy instances are resolved to strings, rather than kept as lazy ... ソース] ¶ Similar to smart_bytes , except that lazy instances are resolved to bytestrings, rather than kept as ...
https://man.plustar.jp/django/ref/utils.html - [similar]
モデルフィールドリファレンス — Django 4.0.6 ドキュメント 7998
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ます。 The default can't be a mutable object (model instance, list , set , etc.), as a reference to the same in ... ould be used as the default value in all new model instances. Instead, wrap the desired default in a callable. ... eats. For fields like ForeignKey that map to model instances, defaults should be the value of the field they r ... ence ( pk unless to_field is set) instead of model instances. The default value is used when new model instanc ...
https://man.plustar.jp/django/ref/models/fields.html - [similar]
Model _meta API — Django 4.0.6 ドキュメント 7844
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e _meta attribute of each model class, which is an instance of an django.db.models.options.Options object. Met ... hat it provides can be used to: Retrieve all field instances of a model Retrieve a single field instance of a ... name Field access API ¶ Retrieving a single field instance of a model by name ¶ Options. get_field ( field_na ... me ) ¶ Returns the field instance given a name of a field. field_name can be the nam ...
https://man.plustar.jp/django/ref/models/meta.html - [similar]
Related objects reference — Django 4.0.6 ドキュメント 7844
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... y-to-many relationships add() accepts either model instances or field values, normally primary keys, as the *o ... t to specify values for the new intermediate model instance(s), if needed. You can use callables as values in ... be evaluated once before creating any intermediate instance(s). create ( through_defaults = None , ** kwargs ) ... t to specify values for the new intermediate model instance, if needed. You can use callables as values in the ...
https://man.plustar.jp/django/ref/models/relations.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT