From ac37d06e1506f20fa8c7f08bbc557a8fbe3e1409 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Thu, 9 Jun 2022 07:53:40 +0200 Subject: [PATCH 01/31] Update to wagtail 3. --- hypha/apply/funds/models/applications.py | 3 ++- hypha/apply/users/admin_views.py | 2 +- hypha/apply/users/templates/wagtailusers/users/edit.html | 5 +++-- hypha/apply/users/templates/wagtailusers/users/index.html | 3 --- hypha/apply/users/templates/wagtailusers/users/list.html | 4 +++- hypha/public/people/models.py | 3 ++- requirements.txt | 2 +- 7 files changed, 12 insertions(+), 10 deletions(-) diff --git a/hypha/apply/funds/models/applications.py b/hypha/apply/funds/models/applications.py index 13837638bc..f10aafcab2 100644 --- a/hypha/apply/funds/models/applications.py +++ b/hypha/apply/funds/models/applications.py @@ -33,7 +33,8 @@ ) from wagtail.contrib.settings.models import BaseSetting, register_setting from wagtail.core.fields import RichTextField -from wagtail.core.models import Page, PageManager, PageQuerySet +from wagtail.core.models import Page, PageManager +from wagtail.query import PageQuerySet from ..admin_forms import RoundBasePageAdminForm, WorkflowFormAdminForm from ..edit_handlers import ReadOnlyInlinePanel, ReadOnlyPanel diff --git a/hypha/apply/users/admin_views.py b/hypha/apply/users/admin_views.py index 17c8da5835..d5e96cfbd3 100644 --- a/hypha/apply/users/admin_views.py +++ b/hypha/apply/users/admin_views.py @@ -10,7 +10,7 @@ from wagtail.admin.auth import any_permission_required from wagtail.admin.filters import WagtailFilterSet from wagtail.admin.forms.search import SearchForm -from wagtail.core.compat import AUTH_USER_APP_LABEL, AUTH_USER_MODEL_NAME +from wagtail.compat import AUTH_USER_APP_LABEL, AUTH_USER_MODEL_NAME User = get_user_model() diff --git a/hypha/apply/users/templates/wagtailusers/users/edit.html b/hypha/apply/users/templates/wagtailusers/users/edit.html index 6acd9e295c..1846bcb287 100644 --- a/hypha/apply/users/templates/wagtailusers/users/edit.html +++ b/hypha/apply/users/templates/wagtailusers/users/edit.html @@ -6,7 +6,7 @@ {% trans "Editing" as editing_str %} {% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=user.get_username merged=1 tabbed=1 icon="user" %} -