Skip to content

_CheckContextView

Overview

Minimal stand-in for a DRF view, so a canonical serializer that reads self.context["view"] while building its fields (for example ExcludeFieldsSerializerMixin, which reads .action from it) can still be introspected outside of any request. This check runs through manage.py check, not a request, so there is no real view to supply here; action = None matches none of the actions such a mixin special-cases, which is the least surprising default -- no field gets excluded that a plain "list"/"retrieve" response wouldn't also include.

dict {#dict}

dictionary for instance variables

weakref {#weakref}

list of weak references to the object

action

Source

server/vueda/info/checks.py:722

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2