Commit af5f720a authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

robustness

parent d52fc83c
......@@ -148,6 +148,8 @@ def startswith(text, starts):
@register.filter
def verbose_name(obj, field_name=None):
if isinstance(obj, str):
return ""
if isinstance(obj, QuerySet):
return obj.model._meta.verbose_name_plural
if field_name is None:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment