Add "generic" render_id_str() method to MasterView

not sure how useful, but maybe
This commit is contained in:
Lance Edgar 2020-03-23 21:25:43 -05:00
parent eaeda6ca36
commit 13802c49a8
2 changed files with 7 additions and 4 deletions

View file

@ -848,6 +848,12 @@ class MasterView(View):
'importer_host_title': importer_host_title,
})
def render_id_str(self, obj, field):
"""
Render the ``id_str`` attribute value for the given object.
"""
return obj.id_str
def render_default_phone(self, obj, field):
"""
Render the "default" (first) phone number for the given contact.