From c492fdfd240f10ade5aa11938fc87f903ef85890 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 9 Feb 2019 13:27:32 -0800 Subject: Removed default empty content argument from HttpResponse calls. --- docs/topics/class-based-views/index.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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 -- cgit v1.3