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

How do I use paginate nested variables? #7

Closed
amitlzkpa opened this issue Dec 19, 2015 · 5 comments
Closed

How do I use paginate nested variables? #7

amitlzkpa opened this issue Dec 19, 2015 · 5 comments
Labels

Comments

@amitlzkpa
Copy link

Trying to implement the following:
{% load el_pagination_tags %}
{% paginate qaSet.items as questionSet %}
{% for question, answerSet in questionSet %}
...
{% endfor %}
{% show_pages %}

It gives me the following error
'dict_items' object is not subscriptable

Thanks!

@shtalinberg
Copy link
Owner

Please, add more traceback information

@shtalinberg
Copy link
Owner

no reply :(

@albardn2
Copy link

I am having the same issue , can anyone help

@reemaparakh
Copy link

reemaparakh commented Dec 18, 2018

I am having same problem, does anyone found any solution?

@albardn2
Copy link

There are 2 solutions:

  1. use diango rest API

  2. make a new app called apis, and write views specifically for the nested variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants