-
Notifications
You must be signed in to change notification settings - Fork 26
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 #4032 from open-formulieren/feature/3688-attachments
[#3688] Use Documents URLs as fileupload variables values
- Loading branch information
Showing
14 changed files
with
514 additions
and
103 deletions.
There are no files selected for viewing
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
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
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
49 changes: 49 additions & 0 deletions
49
...objects_api/migrations/0014_remove_objectsapiregistrationdata_attachment_urls_and_more.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,49 @@ | ||
# Generated by Django 4.2.10 on 2024-03-21 11:36 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("submissions", "0004_auto_20231128_1536"), | ||
("registrations_objects_api", "0013_objectsapiregistrationdata"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="objectsapiregistrationdata", | ||
name="attachment_urls", | ||
), | ||
migrations.CreateModel( | ||
name="ObjectsAPISubmissionAttachment", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"document_url", | ||
models.URLField( | ||
help_text="The URL of the submission attachment registered in the Documents API.", | ||
verbose_name="document_url", | ||
), | ||
), | ||
( | ||
"submission_file_attachment", | ||
models.ForeignKey( | ||
help_text="The submission file attachment.", | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="submissions.submissionfileattachment", | ||
verbose_name="submission file attachment", | ||
), | ||
), | ||
], | ||
), | ||
] |
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
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
Oops, something went wrong.