-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new RelatedLink format choices, update helptext
ref #958
- Loading branch information
Showing
3 changed files
with
50 additions
and
3 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
39 changes: 39 additions & 0 deletions
39
apps/iiif/manifests/migrations/0058_alter_relatedlink_format_and_data_type.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,39 @@ | ||
# Generated by Django 3.2.12 on 2023-12-05 16:16 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("manifests", "0057_alter_manifest_languages"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="relatedlink", | ||
name="data_type", | ||
field=models.CharField( | ||
default="Dataset", | ||
help_text="Leave as 'Dataset' for structured data describing this document (e.g. a remote manifest) and this link will appear in 'seeAlso'; change to any other value and it will only appear in the 'related' property of the manifest.", | ||
max_length=255, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="relatedlink", | ||
name="format", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("text/html", "HTML or web page"), | ||
("application/json", "JSON"), | ||
("application/ld+json", "JSON-LD"), | ||
("application/pdf", "PDF"), | ||
("text/plain", "Text"), | ||
("application/xml", "XML"), | ||
("application/octet-stream", "Other"), | ||
], | ||
max_length=255, | ||
null=True, | ||
), | ||
), | ||
] |
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