parameters: (model, path)
return_statement: return fields
docstring: Return list of Fields given path relative to model.
  
      e.g. (ModelX, "user__groups__name") -> [
          <django.db.models.fields.related.ForeignKey object at 0x...>,
          <django.db.models.fields.related.ManyToManyField object at 0x...>,
          <django.db.models.fields.CharField object at 0x...>,
      ]
docstring_summary: Return list of Fields given path relative to model.
docstring_tokens: Return list of Fields given path relative to model .
function: def get_fields_from_path(model, path):
      """ Return list of Fields given path relative to model.
  
      e.g. (ModelX, "user__groups__name") -> [
          <django.db.models.fields.related.ForeignKey object at 0x...>,
          <django.db.models.fields.related.ManyToManyField object at 0x...>,
          <django.db.models.fields.CharField object at 0x...>,
      ]
      """
      pieces = path.split(LOOKUP_SEP)
      fields = []
      for piece in pieces:
          if fields:
              parent = get_model_from_relation(fields[-1])
          else:
              parent = model
          fields.append(parent._meta.get_field(piece))
      return fields
function_tokens: def get_fields_from_path ( model , path ) : pieces = path . split ( LOOKUP_SEP ) fields = [ ] for piece in pieces : if fields : parent = get_model_from_relation ( fields [ - 1 ] ) else : parent = model fields . append ( parent . _meta . get_field ( piece ) ) return fields