Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

a viewset's action list gets "head" added to it, but only after being called at least once #9747

Open
@rtpg

Description

@rtpg

https://github.com/encode/django-rest-framework/blame/853969c69c815be69513c2f63a41285858a45352/rest_framework/viewsets.py#L106-L107

We didn't havehead set in our actions on a viewset, buthead would suddenly appear in a viewset'sactions, but seemingly randomly.

This way of filling inhead in actions means that before you call a viewset at least once, it will have one set ofactions, but afterwards it would have another.

This is surprising to me, and I have a hard time imagining it to be the right solution here. But perhaps I am missing a detail.

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp