... as the floatformat , filesizeformat , and intcomma templates filters -- received a Decimal with a large number of digits or a large exponent, it could lead to significant memory usage due to a call to '{:f}'.format() . To avoid this, decimals ... with more than 200 digits are now formatted using scientific notation. ... ... the floatformat , filesizeformat , and intcomma templates filters -- received a Decimal with a large number of digits or a large exponent, it could lead to significant memory usage due to a call to '{:f}'.format() . To avoid this, decimals ... with more than 200 digits are now formatted using scientific notation. ... ... ell as the floatformat , filesizeformat , and intcomma templates filters -- received a Decimal with a large number of digits or a large exponent, it could lead to significant memory usage due to a call to '{:f}'.format() . To avoid this, decimals ... with more than 200 digits are now formatted using scientific notation. バグ修正 Made the obj argument of InlineModelAdmin.has_add_permission() optio ... ... or を発生させます。 limit_value には呼び出し可能オブジェクトを指定できます。 DecimalValidator class DecimalValidator ( max_digits , decimal_places ) [ソース] 以下のコードで ValidationError を例外を発生させます: 桁数が max_digits より大きい場合は 'max_d ... igits' 。 小数点以下の桁数が decimal_places より大きい場合は 'max_decimal_places' 。 整数部の桁数が max_digits と decimal_places の差よりも大きい場合は、 'max_whole_digits' 。 FileExtensionValidator class FileExtensionValidator ( all ... ... ... を使用します。先頭及び末尾の空白は無視されます。 エラーメッセージのキー: required , invalid , max_value , min_value , max_digits , max_decimal_places , max_whole_digits , step_size 。 max_value および min_value のエラーメッセージには %(limit_value)s が ... 含まれる場合があり、これは適切な制限値に置き換えられます。同様に、 max_digits 、 max_decimal_places 、および max_whole_digits のエラーメッセージには %(max)s が含まれる場合があります。 5つのオプション引 ... max_value min_value これらはフィールドに許可される値の範囲を制御し、 decimal.Decimal 値として指定する必要があります。 max_digits 値で許容される桁数の最大値 (小数点より前と小数点より後の桁数を合わせ、先頭のゼロは除く)。 decimal_places 許可される小数点以 ... ... and FloatField is now a proper float Old (0.96): class MyModel ( models . Model ): field_name = models . FloatField ( max_digits = 10 , decimal_places = 3 ) ... New (1.0): class MyModel ( models . Model ): field_name = models . DecimalField ( max_digi ... s = 10 , decimal_places = 3 ) ... If you forget to make this change, you will see errors about FloatField not taking a max_digits attribute in __init__ , because the new FloatField takes no precision-related arguments. もしMySQL または PostgreSQLを使用 ... ... OneField fields to perform unnecessary schema changes ( #37260 ). Fixed a bug in Django 6.1 where DecimalField without max_digits and decimal_places caused a crash when retrieving values on SQLite ( #37275 ). Fixed a regression in Django 6.1 that cause ... ... (): return { i : i for i in settings . CURRENCIES } class Expense ( models . Model ): amount = models . DecimalField ( max_digits = 10 , decimal_places = 2 ) currency = models . CharField ( max_length = 3 , choices = get_currencies ) choice に呼び出し可 ... ンスと DateTimeField の日付部分を比較するには、 date ルックアップを使用してください。 DecimalField class DecimalField ( max_digits = None , decimal_places = None , ** options ) [ソース] 固定精度の10進数で、Python では Decimal インスタンスで表されます。こ ... れは DecimalValidator を使用して入力を検証します。 Has the following arguments: DecimalField. max_digits The maximum number of digits allowed in the number. Note that this number must be greater than or equal to decimal_places ... ... 定義しなければなりません。 fields.E131 : decimal_places は非負の整数でなければなりません。 fields.E132 : DecimalField は max_digits 属性を定義する必要があります。 fields.E133 : max_digits は正の整数でなければなりません。 fields.E134 : max_digits は decim ... al_places 以上でなければなりません。 fields.E135 : DecimalField 's max_digits and decimal_places must both be defined or both omitted. fields.E140 : FilePathField は allow_files または allow_folders の ... 2026年10月08日