... ity in SplitArrayField . When using with ArrayField(BooleanField()) , all values after the first True value were marked as checked instead of preserving passed values ( #31073 ). ... ... ity in SplitArrayField . When using with ArrayField(BooleanField()) , all values after the first True value were marked as checked instead of preserving passed values ( #31073 ). ... ... errors = [] # ... your check logic here if check_failed : errors . append ( Error ( "an error" , hint = "A hint." , obj = checked_object , id = "myapp.E001" , ) ) return errors チェック関数は、 必ず app_configs 引数を受け入れる必要があります。この引数は ... 書く メッセージは比較可能なので、次のように簡単にテストを書くことができます。 from django.core.checks import Error errors = checked_object . check () expected_errors = [ Error ( "an error" , hint = "A hint." , obj = checked_object , id = "myapp.E001" , ) ... ... ity in SplitArrayField . When using with ArrayField(BooleanField()) , all values after the first True value were marked as checked instead of preserving passed values ( #31073 ). ... ... で表される場合、データは value 属性に含まれます。フィールドが <input type="checkbox"> で表される場合、HTMLには必要に応じて checked が含まれます。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" ... d="id_contact_email"></div> <div><label for="id_urgent">Urgent:</label><input type="checkbox" name="urgent" id="id_urgent" checked></div> このデフォルトの出力は、各フィールドを <div> で囲みます。以下の点に注意してください。 柔軟性のために、出力には <for ... クルードされますが、この挙動も変更できます。 出力はHTML5の構文を使用し、 <!DOCTYPE html> をターゲットにしています。例えば、 checked='checked' のXHTMLスタイルではなく checked のようなブール属性を使用します。 フォームを print するときは <div> がデフォルトの ... ... ib.admindocs crash when a view is in a class, such as some of the admin views ( #27018 ). Reverted a few admin checks that checked field.many_to_many back to isinstance(field, models.ManyToManyField) since it turned out the checks weren't suitable to be ... ... RangeField および ArrayField のシリアライズを修正しました ( #26215 )。 Reallowed dashes in top-level domain names of URLs checked by URLValidator to fix a regression in Django 1.8 ( #26204 ). Fixed BoundField to reallow slices of subwidgets ( #26267 ). ... ... は、 <!DOCTYPE html> を対象とした HTML5 シンタックスを使います。たとえば、XHTML スタイルである checked='checked' よりも、 checked といった boolean 属性を使います。 Tip ウィジェットを フォームフィールド と混同しないでください。 ... ... 理由は、古いバージョンのDjangoでは、常に空白を取り除いており、効果がないからです。 フォームウィジェットでレンダリングされる checked と selected 属性が、XHTML の checked='checked' や selected='selected' ではなく HTML5 ブール値シンタックスを使用するようにな ... ... 5 )。 Fixed a crash when filtering by a Decimal in RawQuery ( #26219 ). Reallowed dashes in top-level domain names of URLs checked by URLValidator to fix a regression in Django 1.8 ( #26204 ). Fixed some crashing deprecation shims in SimpleTemplateRespo ... 2026年10月08日