1
0
mirror of https://github.com/django/django.git synced 2025-01-27 02:29:55 +00:00

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

Backport of 0f694ce2ebce01356d48302c33c23902b4777537 from main.
This commit is contained in:
Mariusz Felisiak 2024-05-30 14:42:05 +02:00 committed by Natalia
parent 629398e55f
commit 3925476ca0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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."
),
}
)