From f382ba37091612ab803220b0af2d8ba4b420d0f2 Mon Sep 17 00:00:00 2001 From: Leonardo Cavallucci Date: Mon, 25 Sep 2023 18:36:13 +0200 Subject: [PATCH] Bump django-meta version in setup.cfg (#762) * Bump django-meta version in setup.cfg * Fix meta_settings retrieval from django-meta --- changes/761.bugfix | 1 + djangocms_blog/settings.py | 8 ++++---- setup.cfg | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 changes/761.bugfix diff --git a/changes/761.bugfix b/changes/761.bugfix new file mode 100644 index 00000000..18f81fc0 --- /dev/null +++ b/changes/761.bugfix @@ -0,0 +1 @@ +Bump django-meta version in setup.cfg diff --git a/djangocms_blog/settings.py b/djangocms_blog/settings.py index 40e43b79..fe135dad 100644 --- a/djangocms_blog/settings.py +++ b/djangocms_blog/settings.py @@ -195,7 +195,7 @@ Available values are defined in to ``META_FB_TYPES`` defined in `django-meta settings`_. """ -BLOG_FB_APPID = meta_settings.FB_APPID +BLOG_FB_APPID = meta_settings.get_setting("FB_APPID") """ .. _FB_APPID: @@ -204,7 +204,7 @@ Default from ``FB_APPID`` defined in `django-meta settings`_. """ -BLOG_FB_PROFILE_ID = meta_settings.FB_PROFILE_ID +BLOG_FB_PROFILE_ID = meta_settings.get_setting("FB_PROFILE_ID") """ .. _FB_PROFILE_ID: @@ -213,7 +213,7 @@ Default from ``FB_PROFILE_ID`` defined in `django-meta settings`_. """ -BLOG_FB_PUBLISHER = meta_settings.FB_PUBLISHER +BLOG_FB_PUBLISHER = meta_settings.get_setting("FB_PUBLISHER") """ .. _FB_PUBLISHER: @@ -252,7 +252,7 @@ Default from ``TWITTER_TYPES`` defined in `django-meta settings`_. """ -BLOG_TWITTER_SITE = meta_settings.TWITTER_SITE +BLOG_TWITTER_SITE = meta_settings.get_setting("TWITTER_SITE") """ .. _TWITTER_SITE: diff --git a/setup.cfg b/setup.cfg index 7aa28f16..bbd73275 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,7 +38,7 @@ install_requires = django-taggit-autosuggest djangocms-text-ckeditor>=3.9 easy-thumbnails>=2.4.1 - django-meta>=2.0 + django-meta>=2.3 aldryn-apphooks-config>=0.5 djangocms-apphook-setup django-sortedm2m