summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-02-09 13:27:32 -0800
committerTim Graham <timograham@gmail.com>2019-02-09 16:27:32 -0500
commitc492fdfd240f10ade5aa11938fc87f903ef85890 (patch)
tree6d4736e01712797dc7f15a070aa33fdf3995ce75 /docs
parent959d0c078a1c903cd1e4850932be77c4f0d2294d (diff)
Removed default empty content argument from HttpResponse calls.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/class-based-views/index.txt2
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