Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amazebhn committed Oct 24, 2024
1 parent eedf30d commit 4b656ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passbook/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down

0 comments on commit 4b656ab

Please sign in to comment.