Skip to content

Commit

Permalink
Properly name North Macedonia
Browse files Browse the repository at this point in the history
The country changed name a few years ago, our registration should
reflect that.
  • Loading branch information
mhagander committed Oct 8, 2024
1 parent 5b0c19a commit 5ab7ee3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions postgresqleu/countries/fixtures/initial_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -775,9 +775,9 @@
<field type="PositiveSmallIntegerField" name="numcode">446</field>
</object>
<object pk="MK" model="countries.country">
<field type="CharField" name="name">MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF</field>
<field type="CharField" name="printable_name">The former Yugoslav Republic of Macedonia</field>
<field type="CharField" name="iso3">MKD</field>
<field type="CharField" name="name">NORTH MACEDONIA</field>
<field type="CharField" name="printable_name">North Macedonia</field>
<field type="CharField" name="iso3">MKD</field>
<field type="PositiveSmallIntegerField" name="numcode">807</field>
</object>
<object pk="MG" model="countries.country">
Expand Down
14 changes: 14 additions & 0 deletions postgresqleu/countries/migrations/0003_north_macedonia.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Django 4.2.11 on 2024-10-08 11:59

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('countries', '0002_europecountry'),
]

operations = [
migrations.RunSQL("UPDATE country SET name='NORTH MACEDONIA', printable_name='North Macedonia' WHERE iso='MK'"),
]

0 comments on commit 5ab7ee3

Please sign in to comment.