From 67ab836ee4d865bdd19bea3a40af74c70e8a44be Mon Sep 17 00:00:00 2001 From: Chris Giacofei Date: Fri, 7 Jun 2024 18:07:58 -0400 Subject: [PATCH] I swear I fixed this already. --- yeast/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',