Add "generic" render_id_str()
method to MasterView
not sure how useful, but maybe
This commit is contained in:
parent
eaeda6ca36
commit
13802c49a8
2 changed files with 7 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue