per page, with , order by , clip by
Results of 1 - 10 of about 56 for validate (0.002 sec.)
バリデータ (Validator) 13555
バリデータ (Validator) バリデータを記述する バリデータ (validator) は呼び出し可能なオブジェクトで、値を受け取り、ある基準を満たしていない場合に ValidationError を発生させます。バリデータは異なるタイプのフィールド間でバリデーションロジックを ... リデータです。 from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ def validate_even ( value ): if value % 2 != 0 : raise ValidationError ( _ ( " %(value)s is not an even number" ), params = { "value" : ... できます: from django.db import models class MyModel ( models . Model ): even_field = models . IntegerField ( validators = [ validate_even ]) 値はバリデータ実行前に Python に変換されているため、フォームでも同じバリデータを使用できます: from django import f ... orms class MyForm ( forms . Form ): even_field = forms . IntegerField ( validators = [ validate_even ]) より複雑なバリデータに対しては、クラスで __call__() メソッドを利用することもできます。 RegexValidator はその一例で ...
https://man.mtool.work/django/6.1/ref/validators.html
Django 2.2.24 リリースノート 10476
Django 2.2.24 リリースノート June 2, 2021 Django 2.2.24 fixes two security issues in 2.2.23. CVE-2021-33203: Potential directory traversal via admindocs Staff members could use the admindocs TemplateDetailView view to check the existence of ... Possible indeterminate SSRF, RFI, and LFI attacks since validators accepted leading zeros in IPv4 addresses URLValidator , validate_ipv4_address() , and validate_ipv46_address() didn't prohibit leading zeros in octal literals. If you used such values you ... could suffer from indeterminate SSRF, RFI, and LFI attacks. validate_ipv4_address() and validate_ipv46_address() validators were not affected on Python 3.9.5+. ...
https://man.mtool.work/django/6.1/releases/2.2.24.html
Django 3.1.12 リリースノート 10476
Django 3.1.12 リリースノート June 2, 2021 Django 3.1.12 fixes two security issues in 3.1.11. CVE-2021-33203: Potential directory traversal via admindocs Staff members could use the admindocs TemplateDetailView view to check the existence of ... Possible indeterminate SSRF, RFI, and LFI attacks since validators accepted leading zeros in IPv4 addresses URLValidator , validate_ipv4_address() , and validate_ipv46_address() didn't prohibit leading zeros in octal literals. If you used such values you ... could suffer from indeterminate SSRF, RFI, and LFI attacks. validate_ipv4_address() and validate_ipv46_address() validators were not affected on Python 3.9.5+. ...
https://man.mtool.work/django/6.1/releases/3.1.12.html
Django 1.4.21 リリースノート 9400
Django 1.4.21 リリースノート July 8, 2015 Django 1.4.21 fixes several security issues in 1.4.20. Denial-of-service possibility by filling session store In previous versions of Django, the session backends created a new empty record in the s ... il messages in other ways, it's a good idea to ensure that those methods prohibit newlines as well. You might also want to validate that any existing data in your application doesn't contain unexpected newlines. validate_ipv4_address() , validate_slug() ... GenericIPAddresseField , IPAddressField , SlugField , and URLField are also affected. The undocumented, internally unused validate_integer() function is now stricter as it validates using a regular expression instead of simply casting the value using in ...
https://man.mtool.work/django/6.1/releases/1.4.21.html
Django 3.2.4 リリースノート 9400
Django 3.2.4 リリースノート June 2, 2021 Django 3.2.4 では、セキュリティの問題2件と、 3.2.3 におけるいくつかのバグを修正しました。 CVE-2021-33203: Potential directory traversal via admindocs Staff members could use the admindocs TemplateDet ... Possible indeterminate SSRF, RFI, and LFI attacks since validators accepted leading zeros in IPv4 addresses URLValidator , validate_ipv4_address() , and validate_ipv46_address() didn't prohibit leading zeros in octal literals. If you used such values you ... could suffer from indeterminate SSRF, RFI, and LFI attacks. validate_ipv4_address() and validate_ipv46_address() validators were not affected on Python 3.9.5+. バグ修正 Fixed a bug in Django ...
https://man.mtool.work/django/6.1/releases/3.2.4.html
フォームとフィールドのバリデーション 9238
フォームとフィールドのバリデーション フォームのバリデーションは、データがクリーニング (clean) されるときに実行されます。このプロセスをカスタムしたい場合は、様々な箇所に変更を加えることができ、それぞれが違う目的を持っています。クリーニング方 ... の引数を取り、無効な入力の場合に ValidationError を発生させます。バリデーション用の関数は、フィールドの to_python メソッドと validate メソッドが呼び出された後に実行されます。 フォームのバリデーションは複数のステップに分割されます。カスタムやオーバーライドも ... 換した値を返します。たとえば、 FloatField は Python の float に変換されるか、もしくは ValidationError を投げます。 Field の validate() メソッドは、フィールド特有のバリデーションを行います。これはバリデータとしては不適です。正しいデータ型を強制された値を取 ... に統合します。このメソッドをオーバーライドする必要はないはずです。 Field サブクラスの clean() メソッドは、 to_python() 、 validate() 、 run_validators() を正しい順序で実行し、エラーを伝達する役目を負っています。もしこの過程のどこかで ValidationError が投 ...
https://man.mtool.work/django/6.1/ref/forms/validation.html
Django 1.7.9 リリースノート 9238
Django 1.7.9 リリースノート July 8, 2015 Django 1.7.9 fixes several security issues and bugs in 1.7.8. Denial-of-service possibility by filling session store In previous versions of Django, the session backends created a new empty record in ... il messages in other ways, it's a good idea to ensure that those methods prohibit newlines as well. You might also want to validate that any existing data in your application doesn't contain unexpected newlines. validate_ipv4_address() , validate_slug() ... ng your data only exists if you are using these validators outside of the form fields. The undocumented, internally unused validate_integer() function is now stricter as it validates using a regular expression instead of simply casting the value using in ...
https://man.mtool.work/django/6.1/releases/1.7.9.html
モデルインスタンスリファレンス 8737
モデルインスタンスリファレンス このドキュメントでは、 Model API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおいた方がよいでしょう。 このリファレン ... Setting a model attribute does not convert the value to the field's Python type. That conversion happens when the model is validated . Although a field assigned a value of a different type (for example, a string assigned to a UUIDField ) may be converted ... 合を返すヘルパーメソッドです。 オブジェクトを検証 (バリデーション) する モデルのバリデーションには 4 つのステップがあります: Validate the model fields - Model.clean_fields() Validate the model as a whole - Model.clean() Validate the field uniqueness - Mode ... l.validate_unique() 制約を検証する - Model.validate_constraints() モデルの full_clean() メソッドを使うと、4 つ全てのステップが実行され ...
https://man.mtool.work/django/6.1/ref/models/instances.html
Django 4.2.19 リリースノート 8737
Django 4.2.19 リリースノート 2025年2月5日 Django 4.2.19 では 4.2.18 におけるリグレッションを修正しました。 バグ修正 Fixed a regression in Django 4.2.18 that caused validate_ipv6_address() and validate_ipv46_address() to crash when handling ...
https://man.mtool.work/django/6.1/releases/4.2.19.html
Django 5.0.12 リリースノート 8737
Django 5.0.12 リリースノート 2025年2月5日 Django 5.0.12 では 5.0.11 におけるリグレッションを修正しました。 バグ修正 Fixed a regression in Django 5.0.11 that caused validate_ipv6_address() and validate_ipv46_address() to crash when handling ...
https://man.mtool.work/django/6.1/releases/5.0.12.html
PREV 1 2 3 4 5 6 NEXT