Skip to content

Eru: Add national society contribution on eru readiness api#2684

Draft
sudip-khanal wants to merge 3 commits intoproject/surge-eru-updatefrom
feat/eru-update
Draft

Eru: Add national society contribution on eru readiness api#2684
sudip-khanal wants to merge 3 commits intoproject/surge-eru-updatefrom
feat/eru-update

Conversation

@sudip-khanal
Copy link
Contributor

Changes

  • Add National society contribution on eru readiness api

Checklist

Things that should succeed before merging.

  • Updated/ran unit tests
  • Updated CHANGELOG.md

Release

If there is a version update, make sure to tag the repository with the latest version.

comment = models.TextField(verbose_name=_("comment"), blank=True, null=True)
ns_contribution = models.IntegerField(
choices=NationalSocietyContribution.choices,
verbose_name=_("National Souciety Contribution"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
verbose_name=_("National Souciety Contribution"),
verbose_name=_("National Society Contribution"),

migrations.AddField(
model_name='erureadinesstype',
name='ns_contribution',
field=models.IntegerField(choices=[(1, 'Holds the ERU'), (2, 'Supports the ERU')], default=0, verbose_name='National Society Contribution'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would be the value for the old data??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added 0 as the default for now with preserve_default=False, @udaynwa is consulting with the client regarding the migration of existing data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants