It isn't class-based, and this seemed easier.

I realise now I didn't add the header info or `content_type` as added in [that view](https://github.com/django/django/blob/f3b3c569e770f8b576aba446847430586486bac6/django/contrib/sitemaps/views.py#L48-L81).