Ticket #11596: 11596.diff

File 11596.diff, 770 bytes (added by Chris Beaven, 15 years ago)
  • django/core/paginator.py

    ### Eclipse Workspace Patch 1.0
    #P Django trunk
     
    7575
    7676QuerySetPaginator = Paginator # For backwards-compatibility.
    7777
    78 class Page(object):
    79     def __init__(self, object_list, number, paginator):
     78class Page(list):
     79    def __init__(self, object_list, number, paginator, *args, **kwargs):
    8080        self.object_list = object_list
    8181        self.number = number
    8282        self.paginator = paginator
     83        super(Page, self).__init__(object_list, *args, **kwargs)
    8384
    8485    def __repr__(self):
    8586        return '<Page %s of %s>' % (self.number, self.paginator.num_pages)
Back to Top