diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-05-30 14:42:05 +0200 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2024-05-30 09:42:50 -0300 |
| commit | 3925476ca04305215d592baba73da165f85c501e (patch) | |
| tree | c42d270ea68d1493c2ea7ba80b20c36d7705d89a /docs | |
| parent | 629398e55fd260c2ac4c2a9fc8b0c7d8dbda9e56 (diff) | |
[5.0.x] Made cosmetic edits to code snippets reformatted with blacken-docs.
Backport of 0f694ce2ebce01356d48302c33c23902b4777537 from main.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/forms/validation.txt | 2 | ||||
| -rw-r--r-- | docs/ref/models/instances.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt index a2b3fb4885..7a037eaf75 100644 --- a/docs/ref/forms/validation.txt +++ b/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 diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 09cb7c4e90..e1af910848 100644 --- a/docs/ref/models/instances.txt +++ b/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." ), } ) |
