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)
Tests rendering of an empty value.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/admin/util.py/model_ngettext--crossover with--dataset/ETHPy150Open django-erp/django-erp/djangoerp/core/tests.py/RenderingValueToStringCase.test_empty_value_to_string