Skip to content

Commit

Permalink
Update Wagtail
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Sep 25, 2023
1 parent 2197f08 commit d9dda80
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 6 deletions.
23 changes: 23 additions & 0 deletions apps/iiif/annotations/migrations/0010_auto_20230925_2040.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.15 on 2023-09-25 20:40

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('annotations', '0009_auto_20220607_1453'),
]

operations = [
migrations.AlterField(
model_name='annotation',
name='oa_annotation',
field=models.JSONField(default=dict),
),
migrations.AlterField(
model_name='annotation',
name='purpose',
field=models.CharField(choices=[('AS', 'Assessing'), ('BM', 'Bookmarking'), ('CL', 'Classifying'), ('CM', 'Commenting'), ('DS', 'Describing'), ('ED', 'Editing'), ('HL', 'Highlighting'), ('ID', 'Identifying'), ('LK', 'Linking'), ('MO', 'Moderating'), ('PT', 'Painting'), ('QT', 'Questioning'), ('RE', 'Replying'), ('SP', 'Supplementing'), ('TG', 'Tagging')], default='SP', max_length=2),
),
]
18 changes: 18 additions & 0 deletions apps/iiif/kollections/migrations/0024_alter_collection_metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.15 on 2023-09-25 20:40

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('kollections', '0023_auto_20220607_1453'),
]

operations = [
migrations.AlterField(
model_name='collection',
name='metadata',
field=models.JSONField(null=True),
),
]
18 changes: 18 additions & 0 deletions apps/iiif/manifests/migrations/0056_alter_manifest_metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.15 on 2023-09-25 20:40

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('manifests', '0055_alter_manifest_logo_url'),
]

operations = [
migrations.AlterField(
model_name='manifest',
name='metadata',
field=models.JSONField(blank=True, default=dict),
),
]
28 changes: 28 additions & 0 deletions apps/ingest/migrations/0037_auto_20230925_2040.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 3.2.15 on 2023-09-25 20:40

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('ingest', '0036_alter_s3ingest_metadata_spreadsheet'),
]

operations = [
migrations.AlterField(
model_name='local',
name='metadata',
field=models.JSONField(blank=True, default=dict),
),
migrations.AlterField(
model_name='remote',
name='metadata',
field=models.JSONField(blank=True, default=dict),
),
migrations.AlterField(
model_name='s3ingest',
name='s3_bucket',
field=models.CharField(help_text="The name of a publicly-accessible S3 bucket containing volumes to\n ingest, either at the bucket root or within subfolder(s). Each volume should have its own\n subfolder, with the volume's PID as its name.\n <br />\n <strong>Example:</strong> if the bucket's URL is\n https://my-bucket.s3.us-east-1.amazonaws.com/, its name is <strong>my-bucket</strong>.", max_length=255),
),
]
23 changes: 23 additions & 0 deletions apps/readux/migrations/0011_auto_20230925_2040.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.15 on 2023-09-25 20:40

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('readux', '0010_auto_20220607_1453'),
]

operations = [
migrations.AlterField(
model_name='userannotation',
name='oa_annotation',
field=models.JSONField(default=dict),
),
migrations.AlterField(
model_name='userannotation',
name='purpose',
field=models.CharField(choices=[('AS', 'Assessing'), ('BM', 'Bookmarking'), ('CL', 'Classifying'), ('CM', 'Commenting'), ('DS', 'Describing'), ('ED', 'Editing'), ('HL', 'Highlighting'), ('ID', 'Identifying'), ('LK', 'Linking'), ('MO', 'Moderating'), ('PT', 'Painting'), ('QT', 'Questioning'), ('RE', 'Replying'), ('SP', 'Supplementing'), ('TG', 'Tagging')], default='SP', max_length=2),
),
]
2 changes: 1 addition & 1 deletion apps/templates/cms/content_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ <h1>{{ page.title }}</h1>
<p class="lead">{{page.tagline}}</p>
{% endif %}

{{ page.body }}
{% include_block page.body %}
{% endblock %}
3 changes: 2 additions & 1 deletion apps/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ <h2 class="uk-modal-title">Text</h2>
const options = {
manifest: 'https://{{ request.META.HTTP_HOST }}/iiif/v3/{{ volume.pid }}/manifest',
id: 'rdx-viewer',
token: document.getElementsByName('csrfmiddlewaretoken')[0].value
token: document.getElementsByName('csrfmiddlewaretoken')[0].value,
uiActions: []
};

{% if not user.is_anonymouns %}
Expand Down
2 changes: 2 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'default': env.db('DATABASE_URL', default='postgres:///readux'),
}
DATABASES['default']['ATOMIC_REQUESTS'] = True
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

FILE_UPLOAD_HANDLERS = ["django.core.files.uploadhandler.TemporaryFileUploadHandler"]

Expand Down Expand Up @@ -337,6 +338,7 @@
}

WAGTAIL_SITE_NAME = 'Readux'
WAGTAILADMIN_BASE_URL = 'https://localhost'

# CORS HEADERS
CORS_ORIGIN_ALLOW_ALL = True
Expand Down
8 changes: 4 additions & 4 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ django-sass-processor
pylint-django==2.5.3

# Wagtail
wagtail==3.0.3
wagtailmenus==3.1.7 # CANNOT UPDATE
git+https://github.com/jcmundy/wagtail-autocomplete.git@master#egg=wagtail-autocomplete
#wagtail-autocomplete==0.3.1
wagtail==4.2.4
wagtailmenus==3.1.9
#git+https://github.com/jcmundy/wagtail-autocomplete.git@master#egg=wagtail-autocomplete
wagtail-autocomplete==0.10.0
wagtail-cache==1.0.2

# Import/Export
Expand Down

0 comments on commit d9dda80

Please sign in to comment.