Skip to content

Commit cac156a

Browse files
Add migration file for Secure File field.
1 parent f98ded0 commit cac156a

File tree

5 files changed

+149
-0
lines changed

5 files changed

+149
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Generated by Django 4.2.16 on 2024-10-29 08:51
2+
3+
from django.db import migrations
4+
5+
import api.models
6+
import main.fields
7+
8+
9+
class Migration(migrations.Migration):
10+
11+
dependencies = [
12+
("api", "0214_alter_profile_limit_access_to_guest"),
13+
]
14+
15+
operations = [
16+
migrations.AlterField(
17+
model_name="generaldocument",
18+
name="document",
19+
field=main.fields.SecureFileField(
20+
blank=True, null=True, upload_to=api.models.general_document_path, verbose_name="document"
21+
),
22+
),
23+
migrations.AlterField(
24+
model_name="situationreport",
25+
name="document",
26+
field=main.fields.SecureFileField(
27+
blank=True, null=True, upload_to=api.models.sitrep_document_path, verbose_name="document"
28+
),
29+
),
30+
]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Generated by Django 4.2.16 on 2024-10-29 08:51
2+
3+
import django.core.validators
4+
from django.db import migrations
5+
6+
import country_plan.models
7+
import main.fields
8+
9+
10+
class Migration(migrations.Migration):
11+
12+
dependencies = [
13+
("country_plan", "0007_alter_membershipcoordination_sector_and_more"),
14+
]
15+
16+
operations = [
17+
migrations.AlterField(
18+
model_name="countryplan",
19+
name="internal_plan_file",
20+
field=main.fields.SecureFileField(
21+
blank=True,
22+
null=True,
23+
upload_to=country_plan.models.pdf_upload_to,
24+
validators=[django.core.validators.FileExtensionValidator(["pdf"])],
25+
verbose_name="Internal Plan",
26+
),
27+
),
28+
]
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Generated by Django 4.2.16 on 2024-10-29 08:51
2+
3+
from django.db import migrations
4+
5+
import main.fields
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
("dref", "0074_auto_20240129_0909"),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name="dref",
17+
name="budget_file_preview",
18+
field=main.fields.SecureFileField(
19+
blank=True, null=True, upload_to="dref/images/", verbose_name="budget file preview"
20+
),
21+
),
22+
migrations.AlterField(
23+
model_name="dreffile",
24+
name="file",
25+
field=main.fields.SecureFileField(upload_to="dref/images/", verbose_name="file"),
26+
),
27+
migrations.AlterField(
28+
model_name="dreffinalreport",
29+
name="financial_report_preview",
30+
field=main.fields.SecureFileField(blank=True, null=True, upload_to="dref/images/", verbose_name="financial preview"),
31+
),
32+
migrations.AlterField(
33+
model_name="drefoperationalupdate",
34+
name="budget_file_preview",
35+
field=main.fields.SecureFileField(
36+
blank=True, null=True, upload_to="dref-op-update/images/", verbose_name="budget file preview"
37+
),
38+
),
39+
]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Generated by Django 4.2.16 on 2024-10-29 08:51
2+
3+
from django.db import migrations
4+
5+
import main.fields
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
("flash_update", "0012_auto_20230410_0720"),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name="flashgraphicmap",
17+
name="file",
18+
field=main.fields.SecureFileField(upload_to="flash_update/images", verbose_name="file"),
19+
),
20+
migrations.AlterField(
21+
model_name="flashupdate",
22+
name="extracted_file",
23+
field=main.fields.SecureFileField(
24+
blank=True, null=True, upload_to="flash_update/pdf/", verbose_name="extracted file"
25+
),
26+
),
27+
]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generated by Django 4.2.16 on 2024-10-29 08:51
2+
3+
from django.db import migrations
4+
5+
import main.fields
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
("per", "0122_opslearningcacheresponse_and_more"),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name="perdocumentupload",
17+
name="file",
18+
field=main.fields.SecureFileField(upload_to="per/documents/", verbose_name="file"),
19+
),
20+
migrations.AlterField(
21+
model_name="perfile",
22+
name="file",
23+
field=main.fields.SecureFileField(upload_to="per/images/", verbose_name="file"),
24+
),
25+
]

0 commit comments

Comments
 (0)