Skip to content

Commit

Permalink
Merge pull request #92 from platform-coop-toolkit/update-geo-scope-model
Browse files Browse the repository at this point in the history
feat: update Organization.geo_scope to match data (fix #64)
  • Loading branch information
erictheise authored Jun 12, 2020
2 parents 3a41026 + defca51 commit 6315f5a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions mdi/migrations/0076_update_geo_scope.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.0.3 on 2020-06-12 17:55

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('mdi', '0075_update_code_availability'),
]

operations = [
migrations.AlterField(
model_name='organization',
name='geo_scope',
field=models.CharField(blank=True, choices=[('Local', 'Local'), ('Regional', 'Regional'), ('National', 'National'), ('International', 'International')], max_length=16, verbose_name='Geographic scope'),
),
]
2 changes: 1 addition & 1 deletion mdi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class Organization(models.Model):
)
related_organizations = models.ManyToManyField('self', through='EntitiesEntities')
geo_scope = models.CharField(blank=True, max_length=16,
choices=[(0, 'Local'), (1, 'Regional'), (2, 'National'), (3, 'International')],
choices=[('Local', 'Local'), ('Regional', 'Regional'), ('National', 'National'), ('International', 'International')],
verbose_name='Geographic scope', )
geo_scope_city = models.CharField(blank=True, default='', max_length=255, verbose_name='Geographic scope – City', )
geo_scope_region = models.CharField(blank=True, default='', max_length=255, verbose_name='Geographic scope – Region', )
Expand Down

0 comments on commit 6315f5a

Please sign in to comment.