検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 106 for save (0.024 sec.)
モデルからフォームを作成する — Django 4.0.6 ドキュメント 12741
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ブクラスはおおむね以下と同等と言えます (唯一の違いは save() メソッドで、これからすぐ説明します): from django ... _name)s 's %(field_labels)s are not unique." , } } save() メソッド ¶ Every ModelForm also has a save() met ... hod. This method creates and saves a database object from the data bound to the form ... e keyword argument instance ; if this is supplied, save() will update that instance. If it's not supplied, ...
https://man.plustar.jp/django/topics/forms/modelforms.html - [similar]
モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 10869
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... o way touches your database; for that, you need to save() . 注釈 __init__ メソッドをオーバーライドしてモデ ... if value is not DEFERRED )) ) return instance def save ( self , * args , ** kwargs ): # Check how the cur ... g the value of creator isn't allowed" ) super () . save ( * args , ** kwargs ) The example above shows a f ... てもユーザーによって修正できないからです。 モデルの save() メソッドを呼んだときでも full_clean() は自動的に ...
https://man.plustar.jp/django/ref/models/instances.html - [similar]
複数のデータベース — Django 4.0.6 ドキュメント 10369
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... an object retrieved from the foo database will be saved on the same database). The default routing scheme ... underway. This might be the instance that is being saved, or it might be an instance that is being added i ... ' ) >>> fred . first_name = 'Frederick' >>> # This save will also be directed to 'auth_db' >>> fred . save ... the author object >>> mh . author = dna >>> # This save will force the 'mh' instance onto the primary data ...
https://man.plustar.jp/django/topics/db/multi-db.html - [similar]
File オブジェクト — Django 4.0.6 ドキュメント 10126
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... w) will also have a couple of extra methods: File. save ( name , content , save = True ) ¶ Saves a new fil ... new file and update the object to point to it. If save is True , the model's save() method will be called ... once the file is saved. That is, these two lines: >>> car . photo . save ... ( 'myphoto.jpg' , content , save = False ) >>> car . save () are equivalent to: >>> ...
https://man.plustar.jp/django/ref/files/file.html - [similar]
データベースのトランザクション — Django 4.0.6 ドキュメント 9318
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... つの API を提供しています。 atomic ( using = None , savepoint = True , durable = False ) [ソース] ¶ Atomici ... e = True try : with transaction . atomic (): obj . save () except DatabaseError : obj . active = False if ... hen entering the outermost atomic block; creates a savepoint when entering an inner atomic block; releases ... or rolls back to the savepoint when exiting an inner block; commits or rolls ...
https://man.plustar.jp/django/topics/db/transactions.html - [similar]
Signals — Django 4.0.6 ドキュメント 9126
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e sent by various model methods like __init__() or save() that you can override in your own code. If you o ... h instance returned during queryset iteration. pre_save ¶ django.db.models.signals. pre_save ¶ This is sen ... t at the beginning of a model's save() method. このシグナルとともに送信される引数は以下 ... he model class. instance The actual instance being saved. raw A boolean; True if the model is saved exactl ...
https://man.plustar.jp/django/ref/signals.html - [similar]
Related objects reference — Django 4.0.6 ドキュメント 8882
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... he update. This requires the objects to already be saved. You can use the bulk=False argument to instead h ... he related manager perform the update by calling e.save() . Using add() with a many-to-many relationship, ... however, will not call any save() methods (the bulk argument doesn't exist), but r ... aults = None , ** kwargs ) ¶ Creates a new object, saves it and puts it in the related object set. Returns ...
https://man.plustar.jp/django/ref/models/relations.html - [similar]
一対一 (one-to-one) 関係 — Django 4.0.6 ドキュメント 8575
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... on Dogs' , address = '944 W. Fullerton' ) >>> p1 . save () >>> p2 = Place ( name = 'Ace Hardware' , addres ... s = '1013 N. Ashland' ) >>> p2 . save () Create a Restaurant. Pass the "parent" object a ... s_hot_dogs = True , serves_pizza = False ) >>> r . save () A Restaurant can access its place: >>> r . plac ... ecause place is the primary key on Restaurant, the save will create a new restaurant: >>> r . place = p2 > ...
https://man.plustar.jp/django/topics/db/examples/one_to_one.html - [similar]
クエリを作成する — Django 4.0.6 ドキュメント 8447
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... タンス化し、そのデータをデータベースに保存するために save() を呼び出します。 モデル定義が mysite/blog/models ... tagline = 'All the latest Beatles news.' ) >>> b . save () この例では内部で INSERT SQL 文が処理されます。明 ... 示的に save() を呼ぶまで Django はデータベースを操作しません。 ... save() メソッドは値を返しません。 参考 save() はここには ...
https://man.plustar.jp/django/topics/db/queries.html - [similar]
LayerMapping data import utility — Django 4.0.6 ドキュメント 8139
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... g ( TestGeo , 'test_poly.shp' , mapping ) >>> lm . save ( verbose = True ) # Save the layermap, imports th ... e data. Saved: Name: 1 Saved: Name: 2 Saved: Name: 3 Here, Laye ... 2: Support for pathlib.Path data_source was added. save() Keyword Arguments ¶ LayerMapping. save ( verbose ... lse , stream = sys.stdout , strict = False ) ¶ The save() method also accepts keywords. These keywords are ...
https://man.plustar.jp/django/ref/contrib/gis/layermapping.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT