Add batch description to page body title

This commit is contained in:
Lance Edgar 2017-11-30 11:22:54 -06:00
parent 6decabb369
commit 9cf5c9385d

View file

@ -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)\