Skip to content

Commit

Permalink
Merge pull request #439 from eliwaksbaum/3.2
Browse files Browse the repository at this point in the history
Django 3.2
  • Loading branch information
napulen authored Jun 1, 2022
2 parents 8c2ce24 + 1d82875 commit 601c55f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/public/cantusdata/models/manuscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Meta:
is_mapped = models.BooleanField(default=False)
chants_loaded = models.BooleanField(default=False)
plugins = models.ManyToManyField(
"cantusdata.Plugin", related_name="plugins", blank=True, null=True
"cantusdata.Plugin", related_name="plugins", blank=True
)

cantus_url = models.CharField(max_length=255, blank=True, null=True)
Expand Down
2 changes: 2 additions & 0 deletions app/public/cantusdata/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,5 @@

# AUTHENTICATION
MAX_TOKEN_AGE_DAYS = 3

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
4 changes: 2 additions & 2 deletions app/public/cantusdata/templates/admin/map_folios.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ <h2 class="error-message">{{ error }}</h2>
{% endif %}
<td>
{% if is_mapped %}
<a href="/admin/map_folios?manuscript_id={{ m_id }}" class="table-link">Edit map</a>
<a href="/admin/map_folios/?manuscript_id={{ m_id }}" class="table-link">Edit map</a>
{% else %}
<a href="/admin/map_folios?manuscript_id={{ m_id }}" class="table-link">Map now</a>
<a href="/admin/map_folios/?manuscript_id={{ m_id }}" class="table-link">Map now</a>
{% endif %}
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion app/public/cantusdata/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

urlpatterns = [
# Admin pages
path("admin/", admin.site.urls),
path(
"admin/map_folios/",
staff_member_required(MapFoliosView.as_view()),
name="map-folios-view",
),
path("admin/", admin.site.urls),
# Static pages
path("", staticpages.homepage, name="homepage"),
path("about/", staticpages.about, name="about"),
Expand Down
9 changes: 2 additions & 7 deletions app/public/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
Django==3.1.13
Django==3.2
django-extensions==3.1.0
djangorestframework==3.12.2
gunicorn==20.1.0
lxml==4.6.2 # Barely used
Markdown==2.6.2
Pillow==7.1.0 # Barely used
progressbar2==3.47.0 # Barely used
psycopg2==2.8.6
requests==2.20.0
solrpy==0.9.9
wheel==0.24.0 # Not sure if necessary
coverage==4.0.3
coveralls==1.1 # Not sure if necessary
coverage==4.0.3

0 comments on commit 601c55f

Please sign in to comment.