From 4b656ab5327493b66d3e05d01b525074436a2510 Mon Sep 17 00:00:00 2001 From: Ashton Maze Date: Wed, 23 Oct 2024 20:34:35 -0400 Subject: [PATCH] Update models.py --- passbook/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/models.py b/passbook/models.py index a07d1c1..8e5fac1 100755 --- a/passbook/models.py +++ b/passbook/models.py @@ -391,7 +391,7 @@ def json_dict(self): legacyBarcode = self.barcode newBarcodes = [self.barcode.json_dict()] if self.barcode.format not in original_formats: - legacyBarcode = Barcode(self.barcode.message, BarcodeFormat.PDF417, self.barcode.altText or '') + legacyBarcode = Barcode(self.barcode.message, BarcodeFormat.PDF417, getattr(self.barcode, 'altText', '')) d.update({'barcodes': newBarcodes}) d.update({'barcode': legacyBarcode})