Skip to content

Commit

Permalink
Fixed problem on ReportGroup.force_new_page
Browse files Browse the repository at this point in the history
  • Loading branch information
marinho committed Sep 8, 2010
1 parent 89117b2 commit a977166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion geraldo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
- tests - a package with automated doc tests.
"""

VERSION = (0, 4, 7, 'stable')
VERSION = (0, 4, 8, 'stable')

def get_version():
return '%d.%d.%d-%s'%VERSION
Expand Down
2 changes: 1 addition & 1 deletion geraldo/generators/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ def force_new_page(height):
self._current_queryset = subreport.get_objects_list()

# Loops objects
for num, obj in enumerate(subreport.get_objects_list()):
for num, obj in enumerate(self._current_queryset):
# Renders the header band
if num == 0 and subreport.band_header:
# Forces new page if there is no available space
Expand Down

0 comments on commit a977166

Please sign in to comment.