Closed ksurya closed 10 years ago
submission.models.Revision.previous_submission and submission.models.Revision.next_submission use django.core.paginator.Paginator class.
submission.models.Revision.previous_submission
submission.models.Revision.next_submission
django.core.paginator.Paginator
When there is any pk value discontinuity in queryset supplied to the above methods, there is a chance for arising Empty Page exception.
pk
queryset
Empty Page
possible fix is to revert the commit https://github.com/scipy/SciPyCentral/commit/35f3395c2eaf149e4d2392606a24ac237a753c26
Fixed in https://github.com/scipy/SciPyCentral/pull/176
submission.models.Revision.previous_submission
andsubmission.models.Revision.next_submission
usedjango.core.paginator.Paginator
class.When there is any
pk
value discontinuity inqueryset
supplied to the above methods, there is a chance for arisingEmpty Page
exception.