Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with request.current_page.parent - A template tag couldn't find the page with lookup arguments `{'reverse_id': ''} #6702

Open
treavis opened this issue Jul 15, 2019 · 0 comments

Comments

@treavis
Copy link
Contributor

commented Jul 15, 2019

Summary

It seems that documented template tags {% page_url request.current_page.parent %} and {% page_attribute "page_title" request.current_page.parent_id %} throws error

A template tag couldn't find the page with lookup arguments {'reverse_id': ''} .

I tried it on updated projects (from django-cms 3.5 to 3.6 and postgres databases) and on a blank project installed with djangocms-installer with all default settings and sqlite database. Django version is 1.11.22 for both. Results in the same error. For some reason reverse_id argument is empty.

Expected behaviour

{% page_url request.current_page.parent %} should output parent page url
{% page_attribute "page_title" request.current_page.parent_id %} should output parent page title

Actual behaviour

Error

A template tag couldn't find the page with lookup arguments `{'reverse_id': ''}

Environment

  • Python version: 2.7 and python 3.6.9
  • Django version: 1.11.22
  • django CMS version: 3.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.