Skip to content

Commit

Permalink
Fix support fo django CMS 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Jun 28, 2015
1 parent cdcfdae commit 577e148
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion djangocms_page_meta/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ def get_cache_key(page, language):
"""
Create the cache key for the current page and language
"""
from cms.templatetags.cms_tags import _get_cache_key
try:
from cms.cache import _get_cache_key
except ImportError:
from cms.templatetags.cms_tags import _get_cache_key
site_id = page.site_id
return _get_cache_key('page_meta', page, language, site_id)

Expand Down

0 comments on commit 577e148

Please sign in to comment.