per page, with , order by , clip by
Results of 1 - 10 of about 20 for digits (0.070 sec.)
Django 1.11.19 リリースノート 12150
Django 1.11.19 リリースノート February 11, 2019 Django 1.11.19 fixes a security issue in 1.11.18. CVE-2019-6975: Memory exhaustion in django.utils.numberformat.format() If django.utils.numberformat.format() -- used by contrib.admin as well ... 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. ...
https://man.mtool.work/django/6.1/releases/1.11.19.html
Django 2.0.11 リリースノート 12150
Django 2.0.11 リリースノート February 11, 2019 Django 2.0.11 fixes a security issue in 2.0.10. CVE-2019-6975: Memory exhaustion in django.utils.numberformat.format() If django.utils.numberformat.format() -- used by contrib.admin as well 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. ...
https://man.mtool.work/django/6.1/releases/2.0.11.html
Django 2.1.6 リリースノート 11640
Django 2.1.6 リリースノート February 11, 2019 Django 2.1.6 fixes a security issue and a bug in 2.1.5. CVE-2019-6975: Memory exhaustion in django.utils.numberformat.format() If django.utils.numberformat.format() -- used by contrib.admin as w ... 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 ...
https://man.mtool.work/django/6.1/releases/2.1.6.html
バリデータ (Validator) 10111
バリデータ (Validator) バリデータを記述する バリデータ (validator) は呼び出し可能なオブジェクトで、値を受け取り、ある基準を満たしていない場合に ValidationError を発生させます。バリデータは異なるタイプのフィールド間でバリデーションロジックを ... 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 ...
https://man.mtool.work/django/6.1/ref/validators.html
Django 2.0.13 リリースノート 9771
Django 2.0.13 リリースノート February 12, 2019 Django 2.0.13 fixes a regression in 2.0.12/2.0.11. バグ修正 Fixed crash in django.utils.numberformat.format_number() when the number has over 200 digits ( #30177 ). ...
https://man.mtool.work/django/6.1/releases/2.0.13.html
フォーム フィールド 8581
フォーム フィールド class Field [ソース] Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの検証ロジックがあり、他にいくつかのフックもあります。 Field. clean ( value ) [ソース] Field クラス ... を使用します。先頭及び末尾の空白は無視されます。 エラーメッセージのキー: 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 許可される小数点以 ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
Porting your apps from Django 0.96 to 1.0 8394
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... 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を使用 ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
Django 6.1.1 release notes 8394
Django 6.1.1 release notes September 2, 2026 Django 6.1.1 fixes one crash in Django 5.2 and several bugs in 6.1. バグ修正 Fixed a crash in Django 5.2 when combining distinct(*fields) with order_by() and values() and using two lookup paths r ... 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 ...
https://man.mtool.work/django/6.1/releases/6.1.1.html
モデルフィールドリファレンス 8224
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... (): 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 ...
https://man.mtool.work/django/6.1/ref/models/fields.html
システムチェックフレームワーク 7885
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... 定義しなければなりません。 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 の ...
https://man.mtool.work/django/6.1/ref/checks.html
PREV 1 2 NEXT