parameters: (self)
return_statement: return res
docstring: Get the value of the dependent field.
          First try to find the value in the request.
          Then fall back to the raw value from the setting in the DB.
docstring_summary: Get the value of the dependent field.
          First try to find the value in the request.
          Then fall back to the raw value from the setting in the DB.
docstring_tokens: Get the value of the dependent field . First try to find the value in the request . Then fall back to the raw value from the setting in the DB .
function: def get_depends_on(self):
          """
          Get the value of the dependent field.
          First try to find the value in the request.
          Then fall back to the raw value from the setting in the DB.
          """
          from django.conf import settings
  
          dependent_key = next(iter(self.depends_on))
  
          if self.context:
              request = self.context.get('request', None)
              if request and request.data and request.data.get(dependent_key, None):
                  return request.data.get(dependent_key)
          res = settings._get_local(dependent_key, validate=False)
          return res
function_tokens: def get_depends_on ( self ) : from django . conf import settings dependent_key = next ( iter ( self . depends_on ) ) if self . context : request = self . context . get ( 'request' , None ) if request and request . data and request . data . get ( dependent_key , None ) : return request . data . get ( dependent_key ) res = settings . _get_local ( dependent_key , validate = False ) return res