diff --git a/opentech/apply/funds/management/commands/seed_concept_note.py b/opentech/apply/funds/management/commands/seed_concept_note.py index d3ccf810c396a80622426123bb5a0cc197a58bdd..40075ddeff1d15cf9f4a00854c2fa7a090366e9a 100644 --- a/opentech/apply/funds/management/commands/seed_concept_note.py +++ b/opentech/apply/funds/management/commands/seed_concept_note.py @@ -12,6 +12,7 @@ from opentech.apply.home.models import ApplyHomePage from opentech.apply.users.groups import STAFF_GROUP_NAME CN_ROUND_TITLE = 'Internet Freedom Fund' +CN_FUND_TITLE = 'Internet Freedom Fund' class Command(BaseCommand): @@ -40,7 +41,6 @@ class Command(BaseCommand): tech_id = Category.objects.get(name='Technology attributes').id countries_id = Category.objects.get(name='Countries').id - data = [ {"type": "text_markup", "value": "<h3>Basic information</h3>", "id": "25108c8b-c268-4f47-a441-99c3bc4ce43a"}, {"type": "title", "value": {"field_label": "What is your project name?", "help_text": "", "info": None}, "id": "fd8e6437-89a4-4515-84d0-15c31be716ea"}, @@ -145,11 +145,11 @@ class Command(BaseCommand): def create_concept_note_fund_type(self, application_form, proposal_form): try: - fund = FundType.objects.get(title='Internet Freedom Fund') + fund = FundType.objects.get(title=CN_FUND_TITLE) except FundType.DoesNotExist: apply_home = ApplyHomePage.objects.first() - fund = FundType(title='Internet Freedom Fund', workflow_name='double') + fund = FundType(title=CN_FUND_TITLE, workflow_name='double') apply_home.add_child(instance=fund) fund_form = FundForm.objects.create(fund=fund, form=application_form)