Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
d25766c
requirements: Switch to Wagtail 3
donald Apr 25, 2026
ce69460
config: Fix debug toolbar warning
donald Apr 25, 2026
4d294d9
config: Replace obsolete postgres_search
donald Apr 25, 2026
0fbec47
base/views: Remove obsolete is_safe_url()
donald Apr 25, 2026
a3ade51
Remove version freeze of wagtailvideos
donald Apr 25, 2026
d20396f
users/views: Replace ugettext with gettext
donald Apr 25, 2026
84fb2cc
users/forms: Remove obsolete comment
donald Apr 25, 2026
41af03c
settings: Add WAGTAILADMIN_BASE_URL
donald Apr 25, 2026
e21f03d
settings: Add DEFAULT_AUTO_FIELD
donald Apr 25, 2026
eadc892
models: Add missing search_fields bases
donald Apr 25, 2026
88ecbeb
requirements: Update Wagtail from 3.x to 4.x
donald Apr 26, 2026
f557ca3
Fix module names for Wagtail 4.x
donald Apr 26, 2026
d9728f2
Use FieldPanel instead of obsolete XXXPanel
donald Apr 26, 2026
0840835
Add now required use_json_field to StreamField
donald Apr 26, 2026
29a6083
settings/local: Add intranet.molgen.mpg.de to ALLOWED_HOSTS
donald Apr 26, 2026
bf79a0a
blocks: Use VideoChooserBlock
donald Apr 26, 2026
893270a
Add migrations for VideoChooseBlock
donald Apr 26, 2026
1e8889b
settings: Fix WAGTAIL_USER_EDIT_FORM
donald Apr 26, 2026
e114846
chat: Fix embedding after numpy update
donald Apr 27, 2026
d72a961
requirements: Remove version restriction for openai
donald Apr 27, 2026
76475d9
mpicms: Switch to use_json_field=True
donald Apr 30, 2026
7029409
patches: Remove obsolete patch ogg media typo
donald May 7, 2026
a59baec
patches: Remove obsolete patch for dummy requests
donald May 7, 2026
3efa935
requirements: Update Wagtail from 4.x to 5.x
donald May 7, 2026
b6965b7
Convert SearchField partial_match
donald May 7, 2026
9b1ab5d
requirements: Add wagtail-modeladmin
donald May 7, 2026
1e09d77
Replace wagtail.contrib.modeladmin with wagtail_modeladmin
donald May 7, 2026
b15ce11
Fix add_subpage view for updated Wagtail template
donald May 7, 2026
fad875d
settings: Disable debug_toolbar ProfilingPanel
donald May 7, 2026
5b1bba1
base: Fix deprecated classnames kwarg in MenuItem
donald May 7, 2026
a967a52
urls: Redirect /favicon.ico to /static/favicon/favicon.ico
donald May 7, 2026
2b17c8e
base: Remove language background-coloring from stream field panels
donald May 7, 2026
b1c4ab5
base: Add flag emojis to translated field panel headings
donald May 7, 2026
fc2ac42
requirements: Update Wagtail from 5.x to 6.x
donald May 7, 2026
efe064e
base: Fix Query import for Wagtail 6
donald May 7, 2026
e6b948c
users: Replace WAGTAIL_USER_EDIT_FORM with custom UserViewSet
donald May 7, 2026
b9e95d7
requirements: Update Wagtail from 6.x to 7.x
donald May 7, 2026
b51eb3e
users: Remove custom_fields import removed in Wagtail 6
donald May 7, 2026
1152812
users: Replace get_user_edit_form() with direct UserEditForm import
donald May 7, 2026
225ccf2
settings: Add django.contrib.postgres to INSTALLED_APPS
donald May 7, 2026
a511af5
base: Remove accessibility warnings
donald May 17, 2026
24f636f
x
donald May 17, 2026
9578b8f
base: Remove dead VideoBlock class
donald May 8, 2026
5c0331b
requirements: Rebuild
donald Apr 25, 2026
a9625ef
Update translations
donald Apr 30, 2026
8c22815
users: Remove obsolete index.html template override
donald May 17, 2026
8dcc43d
users: Remove dead code
donald May 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
USE_L10N = True
USE_TZ = True

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

# DATABASES
# ------------------------------------------------------------------------------
DATABASES = {
Expand All @@ -36,6 +38,7 @@
# APPS
# ------------------------------------------------------------------------------
DJANGO_APPS = [
'django.contrib.postgres',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
Expand All @@ -51,17 +54,16 @@
'wagtail.contrib.redirects',
'wagtail.embeds',
'wagtail.sites',
'wagtail.users',
'mpicms.users.apps.CustomWagtailUsersAppConfig',
'wagtail.snippets',
'wagtail.documents',
'wagtail.images',
'wagtail.search',
'wagtail.admin',
'wagtail.core',
'wagtail.contrib.postgres_search',
'wagtail',
'wagtail.contrib.search_promotions',
'wagtail.contrib.table_block',
'wagtail.contrib.modeladmin',
'wagtail_modeladmin',
'wagtail.api.v2',
'wagtailorderable',

Expand Down Expand Up @@ -235,16 +237,12 @@

# WAGTAIL
WAGTAIL_SITE_NAME = 'MPI CMS'
# WAGTAIL_USER_EDIT_FORM = 'mpicms.users.forms.CustomUserEditForm'
# WAGTAIL_USER_CREATION_FORM = 'mpicms.users.forms.CustomUserCreationForm'
# WAGTAIL_USER_CUSTOM_FIELDS = ['phone', 'office']

WAGTAIL_USER_EDIT_FORM = 'users.forms.UserEditForm'
WAGTAILADMIN_BASE_URL = "https://intranet.molgen.mpg.de"

# SEARCH
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.contrib.postgres_search.backend',
'BACKEND': 'wagtail.search.backends.database',
}
}

Expand Down
5 changes: 5 additions & 0 deletions config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"localhost",
"0.0.0.0",
"127.0.0.1",
"intranet.molgen.mpg.de",
]

# CACHES
Expand All @@ -24,6 +25,9 @@
# TEMPLATES
# ------------------------------------------------------------------------------
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG # noqa F405
SILENCED_SYSTEM_CHECKS = [
"debug_toolbar.W006", # See https://github.com/django-commons/django-debug-toolbar/issues/1550
]

# EMAIL
# ------------------------------------------------------------------------------
Expand All @@ -43,6 +47,7 @@
DEBUG_TOOLBAR_CONFIG = {
'DISABLE_PANELS': [
'debug_toolbar.panels.redirects.RedirectsPanel',
'debug_toolbar.panels.profiling.ProfilingPanel',
],
'SHOW_TEMPLATE_CONTEXT': True,
}
Expand Down
4 changes: 3 additions & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.documents import urls as wagtaildocs_urls
from wagtail.core import urls as wagtail_urls
from wagtail import urls as wagtail_urls
from wagtail.contrib.sitemaps.views import sitemap

from django.conf import settings
Expand All @@ -9,6 +9,7 @@
from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static
from django.views import defaults as default_views, static as static_views
from django.views.generic import RedirectView

from mpicms.base.views import search, LogoutView, account, add_subpage, subscribe, unsubscribe
from mpicms.base.api import api_router
Expand All @@ -19,6 +20,7 @@


urlpatterns = [
path('favicon.ico', RedirectView.as_view(url='/static/favicon/favicon.ico', permanent=True)),
path('django-admin', admin.site.urls),
path('i18n/', include('django.conf.urls.i18n')),
path('search', search, name='search'),
Expand Down
Loading