Skip to content

Commit

Permalink
feat: add more collection regions
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Nov 2, 2023
1 parent b5bae69 commit 0523b7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data_registry/migrations/0043_collection_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='collection',
name='region',
field=models.TextField(blank=True, choices=[('MEA', 'Africa and Middle East'), ('AS', 'Asia'), ('EU', 'Europe'), ('LA', 'Latin America'), ('NA', 'North America')], help_text='The name of the region to which the country belongs'),
field=models.TextField(blank=True, choices=[('MEA', 'Africa and Middle East'), ('AS', 'Asia'), ('EECA', 'Eastern Europe & Central Asia'), ('EU', 'Europe'), ('LAC', 'Latin America & Caribbean'), ('NA', 'North America'), ('OC', 'Oceania')], help_text='The name of the region to which the country belongs.'),
),
]
6 changes: 4 additions & 2 deletions data_registry/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,16 @@ class Meta:
class Region(models.TextChoices):
MEA = "MEA", _("Africa and Middle East")
AS = "AS", _("Asia")
EECA = "EECA", _("Eastern Europe & Central Asia")
EU = "EU", _("Europe")
LA = "LA", _("Latin America")
LAC = "LAC", _("Latin America & Caribbean")
NA = "NA", _("North America")
OC = "OC", _("Oceania")

region = models.TextField(
choices=Region.choices,
blank=True,
help_text="The name of the region to which the country belongs",
help_text="The name of the region to which the country belongs.",
)

language = models.TextField(blank=True, help_text='The languages used within data fields: for example, "Spanish".')
Expand Down

0 comments on commit 0523b7d

Please sign in to comment.