Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #113 from praekelt/feature/issue-113-multi-page-su…
Browse files Browse the repository at this point in the history
…rveys-pagination

Multipage surveys pagination
  • Loading branch information
moh-moola committed Jul 23, 2018
2 parents 26ab70c + 64dc455 commit b051539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion molo/surveys/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def possibly_has_next(self):

@cached_property
def last_question(self):
return self.object_list[-1]
return self.object_list[len(self.object_list) - 1]

@cached_property
def last_response(self):
Expand Down

0 comments on commit b051539

Please sign in to comment.