parameters: (self)
return_statement: return context
docstring: So that we only fetch active contact fields once for all contacts
docstring_summary: So that we only fetch active contact fields once for all contacts
docstring_tokens: So that we only fetch active contact fields once for all contacts
function: def get_serializer_context(self):
          """
          So that we only fetch active contact fields once for all contacts
          """
          context = super().get_serializer_context()
          context["contact_fields"] = ContactField.user_fields.active_for_org(org=self.request.user.get_org())
          return context
function_tokens: def get_serializer_context ( self ) : context = super ( ) . get_serializer_context ( ) context [ "contact_fields" ] = ContactField . user_fields . active_for_org ( org = self . request . user . get_org ( ) ) return context