parameters: (context, child)
return_statement: return {
          'type': 'feeding',
          'feedings': list(reversed(instances)),
          'empty': empty,
          'hide_empty': _hide_empty(context)
      }
docstring: Information about the three most recent feeding methods.
      :param child: an instance of the Child model.
      :returns: a dictionary with the most recent Feeding instances.
docstring_summary: Information about the three most recent feeding methods.
      :param child: an instance of the Child model.
      :returns: a dictionary with the most recent Feeding instances.
docstring_tokens: Information about the three most recent feeding methods . : param child : an instance of the Child model . : returns : a dictionary with the most recent Feeding instances .
function: def card_feeding_last_method(context, child):
      """
      Information about the three most recent feeding methods.
      :param child: an instance of the Child model.
      :returns: a dictionary with the most recent Feeding instances.
      """
      instances = models.Feeding.objects.filter(child=child) \
          .filter(**_filter_data_age(context)) \
          .order_by('-end')[:3]
      num_unique_methods = len({i.method for i in instances})
      empty = num_unique_methods <= 1
  
      # Results are reversed for carousel forward/back behavior.
      return {
          'type': 'feeding',
          'feedings': list(reversed(instances)),
          'empty': empty,
          'hide_empty': _hide_empty(context)
      }
function_tokens: def card_feeding_last_method ( context , child ) : instances = models . Feeding . objects . filter ( child = child ) . filter ( * * _filter_data_age ( context ) ) . order_by ( '-end' ) [ : 3 ] num_unique_methods = len ( { i . method for i in instances } ) empty = num_unique_methods <= 1 # Results are reversed for carousel forward/back behavior. return { 'type' : 'feeding' , 'feedings' : list ( reversed ( instances ) ) , 'empty' : empty , 'hide_empty' : _hide_empty ( context ) }