diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-02-09 13:27:32 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-02-09 16:27:32 -0500 |
| commit | c492fdfd240f10ade5aa11938fc87f903ef85890 (patch) | |
| tree | 6d4736e01712797dc7f15a070aa33fdf3995ce75 /docs | |
| parent | 959d0c078a1c903cd1e4850932be77c4f0d2294d (diff) | |
Removed default empty content argument from HttpResponse calls.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/class-based-views/index.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/class-based-views/index.txt b/docs/topics/class-based-views/index.txt index 6a629cb887..17e8b66f8f 100644 --- a/docs/topics/class-based-views/index.txt +++ b/docs/topics/class-based-views/index.txt @@ -118,7 +118,7 @@ And the view:: def head(self, *args, **kwargs): last_book = self.get_queryset().latest('publication_date') - response = HttpResponse('') + response = HttpResponse() # RFC 1123 date format response['Last-Modified'] = last_book.publication_date.strftime('%a, %d %b %Y %H:%M:%S GMT') return response |
