forked from CGM_Public/pretix_original
Fix a type error PRETIXEU-1BF
This commit is contained in:
@@ -152,7 +152,7 @@ class Invoice(models.Model):
|
|||||||
if COUNTRIES_WITH_STATE_IN_ADDRESS[str(self.invoice_to_country)][1] == 'long':
|
if COUNTRIES_WITH_STATE_IN_ADDRESS[str(self.invoice_to_country)][1] == 'long':
|
||||||
state_name = pycountry.subdivisions.get(
|
state_name = pycountry.subdivisions.get(
|
||||||
code='{}-{}'.format(self.invoice_to_country, self.invoice_to_state)
|
code='{}-{}'.format(self.invoice_to_country, self.invoice_to_state)
|
||||||
)
|
).name
|
||||||
|
|
||||||
parts = [
|
parts = [
|
||||||
self.invoice_to_company,
|
self.invoice_to_company,
|
||||||
|
|||||||
Reference in New Issue
Block a user