1. Mark Lavin
  2. django-selectable

Commits

Mark Lavin  committed fa9a6c2

Fixing error revealed by testing against latest Django.

  • Participants
  • Parent commits a078dd6
  • Branches default

Comments (0)

Files changed (1)

File selectable/base.py

View file
         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