diff --git a/opentech/apply/funds/management/commands/seed_community_lab_application.py b/opentech/apply/funds/management/commands/seed_community_lab_application.py index d61957552d4648845771900f21de8834b459bf7c..732d98b32a6212fbba8dac74e3f19a70d8b4114d 100644 --- a/opentech/apply/funds/management/commands/seed_community_lab_application.py +++ b/opentech/apply/funds/management/commands/seed_community_lab_application.py @@ -11,6 +11,8 @@ from opentech.apply.review.models import ReviewForm from opentech.apply.home.models import ApplyHomePage from opentech.apply.users.groups import STAFF_GROUP_NAME +CL_FUND_TITLE = 'Community lab (archive fund)' + class Command(BaseCommand): help = "Pre-seeds the Community lab application form and lab type. Depends on the categories seed being run first." @@ -93,11 +95,11 @@ class Command(BaseCommand): lead = User.objects.filter(groups__name=STAFF_GROUP_NAME).first() try: - lab = LabType.objects.get(title='Community lab') + lab = LabType.objects.get(title=CL_FUND_TITLE) except LabType.DoesNotExist: apply_home = ApplyHomePage.objects.first() - lab = LabType(title='Community lab', lead=lead, workflow_name='single') + lab = LabType(title=CL_FUND_TITLE, lead=lead, workflow_name='single') apply_home.add_child(instance=lab) lab_form = LabBaseForm.objects.create(lab=lab, form=application_form) diff --git a/opentech/apply/funds/management/commands/seed_concept_note.py b/opentech/apply/funds/management/commands/seed_concept_note.py index 4036e92c7bab0f7a86d266e6d8a7a163f358ba20..a6a68ca8a49a1d651dcb69a554be6128c1d1dcc8 100644 --- a/opentech/apply/funds/management/commands/seed_concept_note.py +++ b/opentech/apply/funds/management/commands/seed_concept_note.py @@ -14,8 +14,8 @@ from opentech.apply.review.models import ReviewForm 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' +CN_ROUND_TITLE = 'Internet Freedom Fund (archive round)' +CN_FUND_TITLE = 'Internet Freedom Fund (archive fund)' class Command(BaseCommand): diff --git a/opentech/apply/funds/management/commands/seed_fellowship.py b/opentech/apply/funds/management/commands/seed_fellowship.py index ede4f1dacf9b2102a8c7bb574dd611a31db934be..5426116864fdb336ecf97600b621d677dd256b32 100644 --- a/opentech/apply/funds/management/commands/seed_fellowship.py +++ b/opentech/apply/funds/management/commands/seed_fellowship.py @@ -14,8 +14,8 @@ from opentech.apply.review.models import ReviewForm from opentech.apply.home.models import ApplyHomePage from opentech.apply.users.groups import STAFF_GROUP_NAME -FS_ROUND_TITLE = 'Fellowship archive round' -FS_FUND_TITLE = 'Fellowship archive fund' +FS_ROUND_TITLE = 'Fellowship (archive round)' +FS_FUND_TITLE = 'Fellowship (archive fund)' class Command(BaseCommand): @@ -176,8 +176,8 @@ class Command(BaseCommand): title=FS_ROUND_TITLE, lead=lead, # The date of the original Information Controls Fellowship request type - start_date=date(2015, 8, 28), - end_date=None + start_date=date(2013, 1, 1), + end_date=date(2018, 8, 29) ) round.parent_page = fund fund.add_child(instance=round) diff --git a/opentech/apply/funds/management/commands/seed_rapid_response.py b/opentech/apply/funds/management/commands/seed_rapid_response.py index 3fc80c2fac99560c966de89b6f2bab6c9dfd667e..d0089ba5417836e70ed73464a9279f3288c40190 100644 --- a/opentech/apply/funds/management/commands/seed_rapid_response.py +++ b/opentech/apply/funds/management/commands/seed_rapid_response.py @@ -14,7 +14,8 @@ from opentech.apply.review.models import ReviewForm from opentech.apply.home.models import ApplyHomePage from opentech.apply.users.groups import STAFF_GROUP_NAME -RR_ROUND_TITLE = 'Rapid Response open round' +RR_ROUND_TITLE = 'Rapid Response (archive round)' +RR_FUND_TITLE = 'Rapid Response (archive fund)' class Command(BaseCommand): @@ -109,11 +110,11 @@ class Command(BaseCommand): def create_rapid_response_fund_type(self, application_form, application_review_form): try: - fund = FundType.objects.get(title='Rapid Response') + fund = FundType.objects.get(title=RR_FUND_TITLE) except FundType.DoesNotExist: apply_home = ApplyHomePage.objects.first() - fund = FundType(title='Rapid Response', workflow_name='single') + fund = FundType(title=RR_FUND_TITLE, workflow_name='single') apply_home.add_child(instance=fund) fund_form = ApplicationBaseForm.objects.create(application=fund, form=application_form) @@ -136,8 +137,8 @@ class Command(BaseCommand): title=RR_ROUND_TITLE, lead=lead, # The date of the original RR request type - start_date=date(2015, 8, 28), - end_date=None + start_date=date(2013, 1, 1), + end_date=date(2018, 8, 29) ) round.parent_page = fund fund.add_child(instance=round)