|
| 1 | +# Generated by Django 5.2.11 on 2026-02-27 16:55 |
| 2 | + |
| 3 | +import django.contrib.postgres.fields |
| 4 | +import django.db.models.deletion |
| 5 | +from django.conf import settings |
| 6 | +from django.db import migrations, models |
| 7 | + |
| 8 | + |
| 9 | +class Migration(migrations.Migration): |
| 10 | + dependencies = [ |
| 11 | + ("funds", "0131_delete_orphaned_attachments"), |
| 12 | + ("wagtailcore", "0094_alter_page_locale"), |
| 13 | + migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
| 14 | + ] |
| 15 | + |
| 16 | + operations = [ |
| 17 | + migrations.AlterField( |
| 18 | + model_name="applicationsubmission", |
| 19 | + name="user", |
| 20 | + field=models.ForeignKey( |
| 21 | + null=True, |
| 22 | + on_delete=django.db.models.deletion.CASCADE, |
| 23 | + to=settings.AUTH_USER_MODEL, |
| 24 | + ), |
| 25 | + ), |
| 26 | + migrations.CreateModel( |
| 27 | + name="ApplicationSubmissionSkeleton", |
| 28 | + fields=[ |
| 29 | + ( |
| 30 | + "id", |
| 31 | + models.AutoField( |
| 32 | + auto_created=True, |
| 33 | + primary_key=True, |
| 34 | + serialize=False, |
| 35 | + verbose_name="ID", |
| 36 | + ), |
| 37 | + ), |
| 38 | + ("value", models.FloatField(null=True)), |
| 39 | + ( |
| 40 | + "status", |
| 41 | + models.CharField( |
| 42 | + choices=[ |
| 43 | + ("accepted", "Accepted"), |
| 44 | + ("almost", "Accepted but additional info required"), |
| 45 | + ("com_accepted", "Accepted"), |
| 46 | + ("com_almost", "Accepted but additional info required"), |
| 47 | + ("com_community_review", "Community Review"), |
| 48 | + ("com_determination", "Ready for Determination"), |
| 49 | + ("com_external_review", "External Review"), |
| 50 | + ("com_internal_review", "Internal Review"), |
| 51 | + ("com_more_info", "More information required"), |
| 52 | + ("com_open_call", "Open Call (public)"), |
| 53 | + ( |
| 54 | + "com_post_external_review_discussion", |
| 55 | + "Ready For Discussion", |
| 56 | + ), |
| 57 | + ( |
| 58 | + "com_post_external_review_more_info", |
| 59 | + "More information required", |
| 60 | + ), |
| 61 | + ("com_post_review_discussion", "Ready For Discussion"), |
| 62 | + ("com_post_review_more_info", "More information required"), |
| 63 | + ("com_rejected", "Dismissed"), |
| 64 | + ( |
| 65 | + "concept_determination", |
| 66 | + "Ready for Preliminary Determination", |
| 67 | + ), |
| 68 | + ("concept_internal_review", "Internal Review"), |
| 69 | + ("concept_more_info", "More information required"), |
| 70 | + ("concept_rejected", "Dismissed"), |
| 71 | + ("concept_review_discussion", "Ready For Discussion"), |
| 72 | + ("concept_review_more_info", "More information required"), |
| 73 | + ("determination", "Ready for Determination"), |
| 74 | + ("draft", "Draft"), |
| 75 | + ("draft_proposal", "Invited for Proposal"), |
| 76 | + ("ext_accepted", "Accepted"), |
| 77 | + ("ext_almost", "Accepted but additional info required"), |
| 78 | + ("ext_determination", "Ready for Determination"), |
| 79 | + ("ext_external_review", "External Review"), |
| 80 | + ("ext_internal_review", "Internal Review"), |
| 81 | + ("ext_more_info", "More information required"), |
| 82 | + ( |
| 83 | + "ext_post_external_review_discussion", |
| 84 | + "Ready For Discussion", |
| 85 | + ), |
| 86 | + ( |
| 87 | + "ext_post_external_review_more_info", |
| 88 | + "More information required", |
| 89 | + ), |
| 90 | + ("ext_post_review_discussion", "Ready For Discussion"), |
| 91 | + ("ext_post_review_more_info", "More information required"), |
| 92 | + ("ext_rejected", "Dismissed"), |
| 93 | + ("external_review", "External Review"), |
| 94 | + ("in_discussion", "Need screening"), |
| 95 | + ("internal_review", "Internal Review"), |
| 96 | + ("invited_to_proposal", "Concept Accepted"), |
| 97 | + ("more_info", "More information required"), |
| 98 | + ("post_external_review_discussion", "Ready For Discussion"), |
| 99 | + ( |
| 100 | + "post_external_review_more_info", |
| 101 | + "More information required", |
| 102 | + ), |
| 103 | + ("post_proposal_review_discussion", "Ready For Discussion"), |
| 104 | + ( |
| 105 | + "post_proposal_review_more_info", |
| 106 | + "More information required", |
| 107 | + ), |
| 108 | + ("post_review_discussion", "Ready For Discussion"), |
| 109 | + ("post_review_more_info", "More information required"), |
| 110 | + ("proposal_accepted", "Accepted"), |
| 111 | + ( |
| 112 | + "proposal_almost", |
| 113 | + "Accepted but additional info required", |
| 114 | + ), |
| 115 | + ("proposal_determination", "Ready for Final Determination"), |
| 116 | + ("proposal_discussion", "Proposal Received"), |
| 117 | + ("proposal_internal_review", "Internal Review"), |
| 118 | + ("proposal_more_info", "More information required"), |
| 119 | + ("proposal_rejected", "Dismissed"), |
| 120 | + ("rejected", "Dismissed"), |
| 121 | + ("same_accepted", "Accepted"), |
| 122 | + ("same_almost", "Accepted but additional info required"), |
| 123 | + ("same_determination", "Ready for Determination"), |
| 124 | + ("same_internal_review", "Review"), |
| 125 | + ("same_more_info", "More information required"), |
| 126 | + ("same_post_review_discussion", "Ready For Discussion"), |
| 127 | + ("same_post_review_more_info", "More information required"), |
| 128 | + ("same_rejected", "Dismissed"), |
| 129 | + ], |
| 130 | + default="in_discussion", |
| 131 | + max_length=100, |
| 132 | + ), |
| 133 | + ), |
| 134 | + ( |
| 135 | + "category", |
| 136 | + django.contrib.postgres.fields.ArrayField( |
| 137 | + base_field=models.CharField(), null=True, size=None |
| 138 | + ), |
| 139 | + ), |
| 140 | + ("submit_time", models.DateTimeField(verbose_name="submit time")), |
| 141 | + ( |
| 142 | + "page", |
| 143 | + models.ForeignKey( |
| 144 | + on_delete=django.db.models.deletion.PROTECT, |
| 145 | + to="wagtailcore.page", |
| 146 | + ), |
| 147 | + ), |
| 148 | + ( |
| 149 | + "round", |
| 150 | + models.ForeignKey( |
| 151 | + null=True, |
| 152 | + on_delete=django.db.models.deletion.PROTECT, |
| 153 | + related_name="skeleton_submissions", |
| 154 | + to="wagtailcore.page", |
| 155 | + ), |
| 156 | + ), |
| 157 | + ( |
| 158 | + "screening_status", |
| 159 | + models.ForeignKey( |
| 160 | + blank=True, |
| 161 | + null=True, |
| 162 | + on_delete=django.db.models.deletion.PROTECT, |
| 163 | + related_name="skeleton_submissions", |
| 164 | + to="funds.screeningstatus", |
| 165 | + ), |
| 166 | + ), |
| 167 | + ( |
| 168 | + "user", |
| 169 | + models.ForeignKey( |
| 170 | + null=True, |
| 171 | + on_delete=django.db.models.deletion.SET_NULL, |
| 172 | + to=settings.AUTH_USER_MODEL, |
| 173 | + ), |
| 174 | + ), |
| 175 | + ], |
| 176 | + ), |
| 177 | + ] |
0 commit comments