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

Table rendering with {% render_table %} failed with django 1.4 alfa for tables with pagination #42

Closed
koledennix opened this issue Nov 9, 2011 · 3 comments

Comments

@koledennix
Copy link

TypeError
Exception Value:

object of type 'itertools.imap' has no len()

In this code snippet:
{% if table.page %}

In other words:
bool(table.page) will rise this error.

@koledennix
Copy link
Author

The reason is that new method __len__ was added to Paginator:

def __len__(self):
    return len(self.object_list)

@christhekeele
Copy link
Contributor

Ditto with 1.4.0 rc1.

@bradleyayers
Copy link
Collaborator

This is fixed now, thanks guys.

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

No branches or pull requests

3 participants