... バグを見つけたとき ¶ 運よく、 polls のアプリケーションにはすぐに修正可能な小さなバグがありました。 Question.was_published_recently() のメソッドは Question が昨日以降に作成された場合に True を返すのですが(適切な動作)、 Question の pub_date が未来の日付に ... >>> future_question = Question ( pub_date = timezone . now () + datetime . timedelta ( days = 30 )) >>> # was it published recently? >>> future_question . was_published_recently () True 将来のことは「最近(recent)」ではないため、これは明らかに間違いです ... om django.utils import timezone from .models import Question class QuestionModelTests ( TestCase ): def test_was_published_recently_with_future_question ( self ): """ was_published_recently() returns False for questions whose pub_date is in the future. " ... ... バグを見つけたとき ¶ 運よく、 polls のアプリケーションにはすぐに修正可能な小さなバグがありました。 Question.was_published_recently() のメソッドは Question が昨日以降に作成された場合に True を返すのですが(適切な動作)、 Question の pub_date が未来の日付に ... >>> future_question = Question ( pub_date = timezone . now () + datetime . timedelta ( days = 30 )) >>> # was it published recently? >>> future_question . was_published_recently () True 将来のことは「最近(recent)」ではないため、これは明らかに間違いです ... om django.utils import timezone from .models import Question class QuestionModelTests ( TestCase ): def test_was_published_recently_with_future_question ( self ): """ was_published_recently() returns False for questions whose pub_date is in the future. " ... ... a copy of urllib.parse.parse_qsl() which was added to backport some security fixes. A further security fix has been issued recently such that parse_qsl() no longer allows using ; as a query parameter separator by default. Django now includes this fix. Se ... fixes further リリースノート February issue cache poisoning utils http limited contains copy urllib added backport issued recently longer allows using query parameter separator クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... a copy of urllib.parse.parse_qsl() which was added to backport some security fixes. A further security fix has been issued recently such that parse_qsl() no longer allows using ; as a query parameter separator by default. Django now includes this fix. Se ... fixes further リリースノート February issue cache poisoning utils http limited contains copy urllib added backport issued recently longer allows using query parameter separator クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... a copy of urllib.parse.parse_qsl() which was added to backport some security fixes. A further security fix has been issued recently such that parse_qsl() no longer allows using ; as a query parameter separator by default. Django now includes this fix. Se ... further using リリースノート February issue cache poisoning utils http limited contains copy urllib added backport issued recently longer allows query parameter separator クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... min . ModelAdmin ): # ... list_display = [ "question_text" , "pub_date" ] 念のため、 チュートリアル その2 の was_published_recently() メソッドも含めましょう。 polls/admin.py ¶ class QuestionAdmin ( admin . ModelAdmin ): # ... list_display = [ "question_t ... ext" , "pub_date" , "was_published_recently" ] これで、Question のチェンジリストのページは以下のようになります: カラムのヘッダをクリックすると、カラムの値に応じてエン ... トリを並べ換えできます。ただし was_published_recently ヘッダは例外であり、これはメソッドの戻り値を使った並べ換えをサポートしていないからです。 was_published_recently のカラムヘ ... ... min . ModelAdmin ): # ... list_display = [ "question_text" , "pub_date" ] 念のため、 チュートリアル その2 の was_published_recently() メソッドも含めましょう。 polls/admin.py ¶ class QuestionAdmin ( admin . ModelAdmin ): # ... list_display = [ "question_t ... ext" , "pub_date" , "was_published_recently" ] これで、Question のチェンジリストのページは以下のようになります: カラムのヘッダをクリックすると、カラムの値に応じてエン ... トリを並べ換えできます。ただし was_published_recently ヘッダは例外であり、これはメソッドの戻り値を使った並べ換えをサポートしていないからです。 was_published_recently のカラムヘ ... ... a copy of urllib.parse.parse_qsl() which was added to backport some security fixes. A further security fix has been issued recently such that parse_qsl() no longer allows using ; as a query parameter separator by default. Django now includes this fix. Se ... ... a copy of urllib.parse.parse_qsl() which was added to backport some security fixes. A further security fix has been issued recently such that parse_qsl() no longer allows using ; as a query parameter separator by default. Django now includes this fix. Se ... ... a copy of urllib.parse.parse_qsl() which was added to backport some security fixes. A further security fix has been issued recently such that parse_qsl() no longer allows using ; as a query parameter separator by default. Django now includes this fix. Se ... 2026年10月08日