Removed default empty content argument from HttpResponse calls.

This commit is contained in:
Jon Dufresne 2019-02-09 13:27:32 -08:00 committed by Tim Graham
parent 959d0c078a
commit c492fdfd24
9 changed files with 15 additions and 15 deletions

View file

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