Commits

Mark Lavin committed fa9a6c2

Fixing error revealed by testing against latest Django.

  • Participants
  • Parent commits a078dd6

Comments (0)

Files changed (1)

selectable/base.py

         if page_data and page_data.has_next():
             meta['next_page'] = page_data.next_page_number()
         if page_data and page_data.has_previous():
-            meta['prev_page'] = page_data.next_page_number()
+            meta['prev_page'] = page_data.previous_page_number()
         results['data'] = map(self.format_item, page_data.object_list)
         results['meta'] = meta
         return results