### Eclipse Workspace Patch 1.0
#P Django trunk
|
|
|
75 | 75 | |
76 | 76 | QuerySetPaginator = Paginator # For backwards-compatibility. |
77 | 77 | |
78 | | class Page(object): |
79 | | def __init__(self, object_list, number, paginator): |
| 78 | class Page(list): |
| 79 | def __init__(self, object_list, number, paginator, *args, **kwargs): |
80 | 80 | self.object_list = object_list |
81 | 81 | self.number = number |
82 | 82 | self.paginator = paginator |
| 83 | super(Page, self).__init__(object_list, *args, **kwargs) |
83 | 84 | |
84 | 85 | def __repr__(self): |
85 | 86 | return '<Page %s of %s>' % (self.number, self.paginator.num_pages) |