-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #434 from maykinmedia/feature/1048-openzaak-max-fi…
…lesize-and-allowed-extensions [#1048] Feature/add filesize and allowed extensions to openzaak
- Loading branch information
Showing
2 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
src/open_inwoner/openzaak/migrations/0006_auto_20230123_1619.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Generated by Django 3.2.15 on 2023-01-23 15:19 | ||
|
||
from django.db import migrations, models | ||
import django_better_admin_arrayfield.models.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("openzaak", "0005_openzaakconfig_zaak_max_confidentiality"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="openzaakconfig", | ||
name="allowed_file_extensions", | ||
field=django_better_admin_arrayfield.models.fields.ArrayField( | ||
base_field=models.CharField( | ||
max_length=8, verbose_name="Allowed file extensions" | ||
), | ||
default=[ | ||
"pdf", | ||
"doc", | ||
"docx", | ||
"xls", | ||
"xlsx", | ||
"ppt", | ||
"pptx", | ||
"vsd", | ||
"png", | ||
"gif", | ||
"jpg", | ||
"tiff", | ||
"msg", | ||
"txt", | ||
"rtf", | ||
"jpeg", | ||
"bmp", | ||
], | ||
help_text="A list of the allowed file extensions.", | ||
size=None, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="openzaakconfig", | ||
name="max_upload_size", | ||
field=models.PositiveIntegerField( | ||
default=50, | ||
help_text="The max size of the file (in MB) which is uploaded.", | ||
verbose_name="Max upload file size (in MB)", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters