Skip to content

Commit

Permalink
feat(loadpostcodes): Remove space from postal code
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 11, 2023
1 parent 37712a2 commit c92f195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postcodes/management/commands/loadpostcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def handle(self, *args, **options):
for row in reader:
try:
Postcode(
code=row['code'].upper(),
code=row['code'].upper().replace(' ', ''),
centroid=Point(float(row['longitude']), float(row['latitude'])),
city=row['locality'],
province=row['region'],
Expand Down

0 comments on commit c92f195

Please sign in to comment.