mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fix op.address_format() when no zip code is provided
This commit is contained in:
@@ -1186,7 +1186,7 @@ class AbstractPosition(models.Model):
|
||||
self.attendee_name,
|
||||
self.company,
|
||||
self.street,
|
||||
self.zipcode + ' ' + (self.city or '') + ' ' + (self.state_for_address or ''),
|
||||
(self.zipcode or '') + ' ' + (self.city or '') + ' ' + (self.state_for_address or ''),
|
||||
self.country.name
|
||||
]
|
||||
lines = [r.strip() for r in lines if r]
|
||||
|
||||
Reference in New Issue
Block a user