Merge branch 'release/0.8.x' into develop
This commit is contained in:
commit
52cd80b129
7 changed files with 70 additions and 26 deletions
|
|
@ -12,6 +12,7 @@ from haystack.constants import DEFAULT_ALIAS
|
|||
from parler.utils.context import smart_override
|
||||
|
||||
from djangocms_blog.cms_appconfig import BlogConfig
|
||||
from djangocms_blog.cms_menus import BlogCategoryMenu, BlogNavModifier
|
||||
from djangocms_blog.models import BlogCategory, Post, ThumbnailOption
|
||||
|
||||
User = get_user_model()
|
||||
|
|
@ -216,3 +217,8 @@ class BaseTest(BaseTestCase):
|
|||
unified_index = search_conn.get_unified_index()
|
||||
index = unified_index.get_index(Post)
|
||||
return index
|
||||
|
||||
def _reset_menus(self):
|
||||
cache.clear()
|
||||
BlogCategoryMenu._config = {}
|
||||
BlogNavModifier._config = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue