浏览代码

[5.0.x] Made cosmetic edits to code snippets reformatted with blacken-docs.

Backport of 0f694ce2ebce01356d48302c33c23902b4777537 from main.
Mariusz Felisiak 10 月之前
父节点
当前提交
3925476ca0
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      docs/ref/forms/validation.txt
  2. 1 1
      docs/ref/models/instances.txt

+ 1 - 1
docs/ref/forms/validation.txt

@@ -370,7 +370,7 @@ example::
                 # Only do something if both fields are valid so far.
                 if "help" not in subject:
                     raise ValidationError(
-                        "Did not send for 'help' in the subject despite " "CC'ing yourself."
+                        "Did not send for 'help' in the subject despite CC'ing yourself."
                     )
 
 In this code, if the validation error is raised, the form will display an

+ 1 - 1
docs/ref/models/instances.txt

@@ -374,7 +374,7 @@ Then, ``full_clean()`` will check unique constraints on your model.
                         raise ValidationError(
                             {
                                 "status": _(
-                                    "Set status to draft if there is not a " "publication date."
+                                    "Set status to draft if there is not a publication date."
                                 ),
                             }
                         )