... rter Reporter オブジェクトを使って Article を作成する: >>> new_article = r . article_set . create ( ... headline = "John's second story" , pub_date = date ( 2005 , 7 , 29 ) ... ) >>> new_article <Article: John's second story> >>> new_article . reporter ... eporter <Reporter: John Smith> >>> new_article2 . reporter . id 1 >>> r . article_set . all () <QuerySet [<Article: John's second story>, <Article: Paul's story>, <Article: This is a test>]> 同じ記事を別の記事セットに追加する - 移動することを確認します ... peError : 'Article' instance expected, got <Reporter: Paul Jones> >>> r . article_set . all () <QuerySet [<Article: John's second story>, <Article: This is a test>]> >>> r2 . article_set . all () <QuerySet [<Article: Paul's story>]> >>> r . article_set ... ... rter Reporter オブジェクトを使って Article を作成する: >>> new_article = r . article_set . create ( ... headline = "John's second story" , pub_date = date ( 2005 , 7 , 29 ) ... ) >>> new_article <Article: John's second story> >>> new_article . reporter ... eporter <Reporter: John Smith> >>> new_article2 . reporter . id 1 >>> r . article_set . all () <QuerySet [<Article: John's second story>, <Article: Paul's story>, <Article: This is a test>]> 同じ記事を別の記事セットに追加する - 移動することを確認します ... peError : 'Article' instance expected, got <Reporter: Paul Jones> >>> r . article_set . all () <QuerySet [<Article: John's second story>, <Article: This is a test>]> >>> r2 . article_set . all () <QuerySet [<Article: Paul's story>]> >>> r . article_set ... ... >> Post . objects . create ( name = "First post" , tags = [ "thoughts" , "django" ]) >>> Post . objects . create ( name = "Second post" , tags = [ "thoughts" ]) >>> Post . objects . create ( name = "Third post" , tags = [ "tutorial" , "django" ]) >>> P ... ost . objects . filter ( tags__contains = [ "thoughts" ]) <QuerySet [<Post: First post>, <Post: Second post>]> >>> Post . objects . filter ( tags__contains = [ "django" ]) <QuerySet [<Post: First post>, <Post: Third post>]> > ... >> Post . objects . create ( name = "First post" , tags = [ "thoughts" , "django" ]) >>> Post . objects . create ( name = "Second post" , tags = [ "thoughts" ]) >>> Post . objects . create ( name = "Third post" , tags = [ "tutorial" , "django" ]) >>> P ... ... >> Post . objects . create ( name = "First post" , tags = [ "thoughts" , "django" ]) >>> Post . objects . create ( name = "Second post" , tags = [ "thoughts" ]) >>> Post . objects . create ( name = "Third post" , tags = [ "tutorial" , "django" ]) >>> P ... ost . objects . filter ( tags__contains = [ "thoughts" ]) <QuerySet [<Post: First post>, <Post: Second post>]> >>> Post . objects . filter ( tags__contains = [ "django" ]) <QuerySet [<Post: First post>, <Post: Third post>]> > ... >> Post . objects . create ( name = "First post" , tags = [ "thoughts" , "django" ]) >>> Post . objects . create ( name = "Second post" , tags = [ "thoughts" ]) >>> Post . objects . create ( name = "Third post" , tags = [ "tutorial" , "django" ]) >>> P ... ... ContextPopException が発生します: >>> c = Context () >>> c [ "foo" ] = "first level" >>> c . push () {} >>> c [ "foo" ] = "second level" >>> c [ "foo" ] 'second level' >>> c . pop () {'foo': 'second level'} >>> c [ "foo" ] 'first level' >>> c [ "foo" ] ... されるようにすることもできます。 >>> c = Context () >>> c [ "foo" ] = "first level" >>> with c . push (): ... c [ "foo" ] = "second level" ... c [ "foo" ] ... 'second level' >>> c [ "foo" ] 'first level' push() に渡されたすべての引数は、新しいコンテキスト ... に使用される dict コンストラクタに渡されます。 >>> c = Context () >>> c [ "foo" ] = "first level" >>> with c . push ( foo = "second level" ): ... c [ "foo" ] ... 'second level' >>> c [ "foo" ] 'first level' Context. update ( other_dict ) [ソース] ¶ push( ... ... ContextPopException が発生します: >>> c = Context () >>> c [ "foo" ] = "first level" >>> c . push () {} >>> c [ "foo" ] = "second level" >>> c [ "foo" ] 'second level' >>> c . pop () {'foo': 'second level'} >>> c [ "foo" ] 'first level' >>> c [ "foo" ] ... されるようにすることもできます。 >>> c = Context () >>> c [ "foo" ] = "first level" >>> with c . push (): ... c [ "foo" ] = "second level" ... c [ "foo" ] ... 'second level' >>> c [ "foo" ] 'first level' push() に渡されたすべての引数は、新しいコンテキスト ... に使用される dict コンストラクタに渡されます。 >>> c = Context () >>> c [ "foo" ] = "first level" >>> with c . push ( foo = "second level" ): ... c [ "foo" ] ... 'second level' >>> c [ "foo" ] 'first level' Context. update ( other_dict ) [ソース] ¶ push( ... ... 1.3.3 リリースノート 次のトピックへ Django 1.3.1 リリースノート 関連キーワード security release issues リリースノート July second series fixing several recommended upgrade users list addressed advisory クイック検索 Last update: 2026年10月09日 « previou ... ... ommits. The above command will open an editor showing the two commits, prefixed with the word "pick". Change "pick" on the second line to "squash" instead. This will keep the first commit, and squash the second commit into the first one. Save and quit ... the editor. A second editor window should open, so you can reword the commit message for the commit now that it includes both your steps. You c ... mmit work with "--amend" and continue git commit --amend # Reword the commit message if needed git rebase --continue # The second and third commits should be applied. If your topic branch is already published at GitHub, for example if you're making min ... ... リリースノート 次のトピックへ Django 1.3.1 リリースノート 関連キーワード Django security release issues リリースノート July second series fixing several recommended upgrade users list addressed see advisory 関連するページ Django 1.4.1 リリースノート Dja ... ... ommits. The above command will open an editor showing the two commits, prefixed with the word "pick". Change "pick" on the second line to "squash" instead. This will keep the first commit, and squash the second commit into the first one. Save and quit ... the editor. A second editor window should open, so you can reword the commit message for the commit now that it includes both your steps. You c ... mmit work with "--amend" and continue git commit --amend # Reword the commit message if needed git rebase --continue # The second and third commits should be applied. If your topic branch is already published at GitHub, for example if you're making min ... 2026年10月08日