scipy / SciPyCentral

SciPy Central
http://scipy-central.org
BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

`submission.models.Revision.previous_submission` and `.next_submission` misbehave #163

Closed ksurya closed 10 years ago

ksurya commented 10 years ago

submission.models.Revision.previous_submission and submission.models.Revision.next_submission use django.core.paginator.Paginator class.

When there is any pk value discontinuity in queryset supplied to the above methods, there is a chance for arising Empty Page exception.

ksurya commented 10 years ago

possible fix is to revert the commit https://github.com/scipy/SciPyCentral/commit/35f3395c2eaf149e4d2392606a24ac237a753c26

ksurya commented 10 years ago

Fixed in https://github.com/scipy/SciPyCentral/pull/176