Skip to content

Commit f9f4bf1

Browse files
committed
Merge pull request #1794 from rtfd/fix-latest-filtering
Only consider public versions on compare
2 parents bc29e94 + 8d4cab1 commit f9f4bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/restapi/views/footer_views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
def get_version_compare_data(project, base_version=None):
1919
highest_version_obj, highest_version_comparable = highest_version(
20-
project.versions.filter(active=True))
20+
project.versions.public().filter(active=True))
2121
ret_val = {
2222
'project': unicode(highest_version_obj),
2323
'version': unicode(highest_version_comparable),

0 commit comments

Comments
 (0)