Add batch description to page body title
This commit is contained in:
parent
6decabb369
commit
9cf5c9385d
|
@ -135,7 +135,9 @@ class BatchMasterView(MasterView):
|
||||||
return kwargs
|
return kwargs
|
||||||
|
|
||||||
def get_instance_title(self, batch):
|
def get_instance_title(self, batch):
|
||||||
return batch.id_str or unicode(batch)
|
if batch.description:
|
||||||
|
return "{} {}".format(batch.id_str, batch.description)
|
||||||
|
return batch.id_str
|
||||||
|
|
||||||
def get_mobile_data(self, session=None):
|
def get_mobile_data(self, session=None):
|
||||||
return super(BatchMasterView, self).get_mobile_data(session=session)\
|
return super(BatchMasterView, self).get_mobile_data(session=session)\
|
||||||
|
|
Loading…
Reference in a new issue