parameters: (obj, n=None)
return_statement: return ungettext(singular, plural, n or 0)
docstring: Return the appropriate `verbose_name` or `verbose_name_plural` value for
      `obj` depending on the count `n`.
  
      `obj` may be a `Model` instance, `Model` subclass, or `QuerySet` instance.
      If `obj` is a `QuerySet` instance, `n` is optional and the length of the
      `QuerySet` is used.
docstring_summary: Return the appropriate `verbose_name` or `verbose_name_plural` value for
      `obj` depending on the count `n`.
docstring_tokens: Return the appropriate verbose_name or verbose_name_plural value for obj depending on the count n .
function: def model_ngettext(obj, n=None):
      """
      Return the appropriate `verbose_name` or `verbose_name_plural` value for
      `obj` depending on the count `n`.
  
      `obj` may be a `Model` instance, `Model` subclass, or `QuerySet` instance.
      If `obj` is a `QuerySet` instance, `n` is optional and the length of the
      `QuerySet` is used.
  
      """
      if isinstance(obj, models.query.QuerySet):
          if n is None:
              n = obj.count()
          obj = obj.model
      d = model_format_dict(obj)
      singular, plural = d["verbose_name"], d["verbose_name_plural"]
      return ungettext(singular, plural, n or 0)
function_tokens: def model_ngettext ( obj , n = None ) : if isinstance ( obj , models . query . QuerySet ) : if n is None : n = obj . count ( ) obj = obj . model d = model_format_dict ( obj ) singular , plural = d [ "verbose_name" ] , d [ "verbose_name_plural" ] return ungettext ( singular , plural , n or 0 )