diff --git a/api/migrations/0215_alter_generaldocument_document_and_more.py b/api/migrations/0215_alter_generaldocument_document_and_more.py new file mode 100644 index 000000000..267750956 --- /dev/null +++ b/api/migrations/0215_alter_generaldocument_document_and_more.py @@ -0,0 +1,30 @@ +# Generated by Django 4.2.16 on 2024-10-29 08:51 + +from django.db import migrations + +import api.models +import main.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ("api", "0214_alter_profile_limit_access_to_guest"), + ] + + operations = [ + migrations.AlterField( + model_name="generaldocument", + name="document", + field=main.fields.SecureFileField( + blank=True, null=True, upload_to=api.models.general_document_path, verbose_name="document" + ), + ), + migrations.AlterField( + model_name="situationreport", + name="document", + field=main.fields.SecureFileField( + blank=True, null=True, upload_to=api.models.sitrep_document_path, verbose_name="document" + ), + ), + ] diff --git a/country_plan/migrations/0008_alter_countryplan_internal_plan_file.py b/country_plan/migrations/0008_alter_countryplan_internal_plan_file.py new file mode 100644 index 000000000..d4523aa85 --- /dev/null +++ b/country_plan/migrations/0008_alter_countryplan_internal_plan_file.py @@ -0,0 +1,28 @@ +# Generated by Django 4.2.16 on 2024-10-29 08:51 + +import django.core.validators +from django.db import migrations + +import country_plan.models +import main.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ("country_plan", "0007_alter_membershipcoordination_sector_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="countryplan", + name="internal_plan_file", + field=main.fields.SecureFileField( + blank=True, + null=True, + upload_to=country_plan.models.pdf_upload_to, + validators=[django.core.validators.FileExtensionValidator(["pdf"])], + verbose_name="Internal Plan", + ), + ), + ] diff --git a/dref/migrations/0075_alter_dref_budget_file_preview_alter_dreffile_file_and_more.py b/dref/migrations/0075_alter_dref_budget_file_preview_alter_dreffile_file_and_more.py new file mode 100644 index 000000000..aa47b34bd --- /dev/null +++ b/dref/migrations/0075_alter_dref_budget_file_preview_alter_dreffile_file_and_more.py @@ -0,0 +1,39 @@ +# Generated by Django 4.2.16 on 2024-10-29 08:51 + +from django.db import migrations + +import main.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ("dref", "0074_auto_20240129_0909"), + ] + + operations = [ + migrations.AlterField( + model_name="dref", + name="budget_file_preview", + field=main.fields.SecureFileField( + blank=True, null=True, upload_to="dref/images/", verbose_name="budget file preview" + ), + ), + migrations.AlterField( + model_name="dreffile", + name="file", + field=main.fields.SecureFileField(upload_to="dref/images/", verbose_name="file"), + ), + migrations.AlterField( + model_name="dreffinalreport", + name="financial_report_preview", + field=main.fields.SecureFileField(blank=True, null=True, upload_to="dref/images/", verbose_name="financial preview"), + ), + migrations.AlterField( + model_name="drefoperationalupdate", + name="budget_file_preview", + field=main.fields.SecureFileField( + blank=True, null=True, upload_to="dref-op-update/images/", verbose_name="budget file preview" + ), + ), + ] diff --git a/flash_update/migrations/0013_alter_flashgraphicmap_file_and_more.py b/flash_update/migrations/0013_alter_flashgraphicmap_file_and_more.py new file mode 100644 index 000000000..fa1ec0ab7 --- /dev/null +++ b/flash_update/migrations/0013_alter_flashgraphicmap_file_and_more.py @@ -0,0 +1,27 @@ +# Generated by Django 4.2.16 on 2024-10-29 08:51 + +from django.db import migrations + +import main.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ("flash_update", "0012_auto_20230410_0720"), + ] + + operations = [ + migrations.AlterField( + model_name="flashgraphicmap", + name="file", + field=main.fields.SecureFileField(upload_to="flash_update/images", verbose_name="file"), + ), + migrations.AlterField( + model_name="flashupdate", + name="extracted_file", + field=main.fields.SecureFileField( + blank=True, null=True, upload_to="flash_update/pdf/", verbose_name="extracted file" + ), + ), + ] diff --git a/per/migrations/0123_alter_perdocumentupload_file_alter_perfile_file.py b/per/migrations/0123_alter_perdocumentupload_file_alter_perfile_file.py new file mode 100644 index 000000000..86a9ab26a --- /dev/null +++ b/per/migrations/0123_alter_perdocumentupload_file_alter_perfile_file.py @@ -0,0 +1,25 @@ +# Generated by Django 4.2.16 on 2024-10-29 08:51 + +from django.db import migrations + +import main.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ("per", "0122_opslearningcacheresponse_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="perdocumentupload", + name="file", + field=main.fields.SecureFileField(upload_to="per/documents/", verbose_name="file"), + ), + migrations.AlterField( + model_name="perfile", + name="file", + field=main.fields.SecureFileField(upload_to="per/images/", verbose_name="file"), + ), + ]