diff options
author | django-bot <ops@djangoproject.com> | 2023-02-28 20:53:28 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-03-01 13:03:56 +0100 |
commit | 14459f80ee3a9e005989db37c26fd13bb6d2fab2 (patch) | |
tree | eb62429ed696ed3a5389f3a676aecfc6d15a99cc /docs/releases/4.0.txt | |
parent | 6015bab80e28aef2669f6fac53423aa65f70cb08 (diff) | |
download | django-14459f80ee3a9e005989db37c26fd13bb6d2fab2.tar.gz |
Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.
Diffstat (limited to 'docs/releases/4.0.txt')
-rw-r--r-- | docs/releases/4.0.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt index abadd54a03..d2aaf98f80 100644 --- a/docs/releases/4.0.txt +++ b/docs/releases/4.0.txt @@ -89,9 +89,9 @@ For example:: class Meta: constraints = [ UniqueConstraint( - Lower('first_name'), - Lower('last_name').desc(), - name='first_last_name_unique', + Lower("first_name"), + Lower("last_name").desc(), + name="first_last_name_unique", ), ] @@ -468,7 +468,7 @@ instead. If you want to support legacy browsers and set the header, use this line in a custom middleware:: - response.headers.setdefault('X-XSS-Protection', '1; mode=block') + response.headers.setdefault("X-XSS-Protection", "1; mode=block") .. _Content-Security-Policy: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy |