diff --git a/yeast/views.py b/yeast/views.py index 2fd3453..9dbfc98 100644 --- a/yeast/views.py +++ b/yeast/views.py @@ -105,8 +105,8 @@ def batch_labels(request, batch_id): for sample in to_print: labels.append({ 'id': sample.id, - 'title': '{} {}'.format(sample.batch.strain.manufacturer.name, sample.batch.strain.name), - 'data': ['ID: {}'.format(sample.id), 'Date: {}'.format(sample.batch.production_date)], + 'title': '{} {}'.format(sample.propogation.strain.manufacturer.name, sample.propogation.strain.name), + 'data': ['ID: {}'.format(sample.id), 'Date: {}'.format(sample.propogation.production_date)], 'blank': False, 'host': request.get_host(), 'template': 'yeast',