Skip to content

Generic view does not support the "HEAD" method. #1956

@nikolaysm

Description

@nikolaysm

if self.request.method == 'GET':

As Django's default handling of the HEAD method as GET, it would be beneficial to include data in the form even when a HEAD method is requested to align with Django's expected behavior.

To support HEAD method we can do:
if self.request.method in ['GET', 'HEAD']:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions