... ( #26325 ). Fixed data loss on SQLite where DurationField values with fractional seconds could be saved as None ( #26324 ). Restored the functionality of the admin's raw_id_fields ... ... crashing rather than generating a bad request response ( #27820 ). Fixed a crash on Oracle and PostgreSQL when subtracting DurationField or IntegerField from DateField ( #27828 ). Fixed query expression date subtraction accuracy on PostgreSQL for differences ... ... ault value instead of False if there's an error when trying to add the value to the cache. Fixed data loss on SQLite where DurationField values with fractional seconds could be saved as None ( #26324 ). The forms in contrib.auth no longer strip trailing and l ... ... n ルックアップを使用した Q オブジェクトと list を組み合わせた場合にクラッシュするリグレッションを修正しました ( #29643 )。 DurationField の "overflow" エラーメッセージの翻訳に失敗する問題を修正しました ( #29623 )。 ユーザーが TabularInline を使用しているモデル ... ... ion tables on PostgreSQL. In older versions, models are created child tables instead the parent. inspectdb now introspects DurationField for Oracle and PostgreSQL, and AutoField for SQLite. On Oracle, dbshell is wrapped with rlwrap , if available. rlwrap prov ... r set DatabaseFeatures.supports_ignore_conflicts to False . Third party database backends must implement introspection for DurationField or set DatabaseFeatures.can_introspect_duration_field to False . DatabaseFeatures.uses_savepoints now defaults to True . T ... ... set pickling when using prefetch_related() after deleting objects ( #24831 ). Allowed using choices longer than 1 day with DurationField ( #24897 ). Fixed a crash when loading squashed migrations from two apps with a dependency between them, where the depende ... ... では、サードパーティのデータベースバックエンドで必要になる可能性のある変更について説明します。 The DatabaseOperations.adapt_durationfield_value() hook is added. If the database has native support for DurationField , override this method to simply return the va ... ... てください。 Changed in Django 6.1: Support for DecimalField with no precision was added on Oracle, PostgreSQL, and SQLite. DurationField class DurationField ( ** options ) [ソース] 時刻の期間を保持するフィールドで、 Python の timedelta によってモデル化されます ... terval で、Oracle でのデータ型は INTERVAL DAY(9) TO SECOND(6) です。 それ以外では、マイクロ秒の bigint が使われます。 注釈 DurationField での演算はほとんどの場合で機能します。ただし、PostgreSQL 以外のデータベースでは、 DurationField の値と DateTimeField インス ... ... ue の場合 empty_value が None にセットされます。 DateField DateField DateTimeField DateTimeField DecimalField DecimalField DurationField DurationField EmailField EmailField FileField FileField FilePathField FilePathField FloatField FloatField ForeignKey Model ... ... 限します。もし min_value も指定されている場合、その値をオフセットとして加算し、ステップサイズが一致しているかを判断します。 DurationField class DurationField ( ** kwargs ) [ソース] デフォルトのウィジェット: TextInput 空の値: None 正規化後の値: Python の timede ... 2026年10月08日